Author Topic: [XP] Heretic's Cloud Altitude  (Read 4603 times)

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 727
  • LV: 29
    • View Profile
[XP] Heretic's Cloud Altitude
« on: November 25, 2012, 01:09:24 AM »
Heretic's Cloud Altitude
Authors: Heretic
Version: 2.3
Type: Enviornmental Simulation
Key Term: Custom Environment System

Introduction

This script will turn your Fog into Clouds!

Features

  • Makes Fog appear to be above the Player by messing with Movement
  • Compatible with 8 Directional Movement Scripts
  • Clouds can go Below Terrain by using a Negative Altitude
  • Contains additional Scripts for changing settings in Demo

Screenshots

Unable to show a screenshot that allows you to tell the difference between Fog and Clouds.  You'll have to grab the Demo and see for yourself.

Demo

http://downloads.chaos-project.com/heretic86/HereticsCloudAltitude2.3.exe

Updated to 2.0 for compatability with Unlimited Fogs
Updated to 2.1 for compatability with Waves
Updated to 2.2 for compatability with Heretic's Looping Maps
Updated to 2.3 for Bugfix where exiting Menus would cause "snapping".  Also corrects this bug on Unlimited Fogs.

http://downloads.chaos-project.com/heretic86/HereticsCollectionVer2.exe (Alternate Link)


Script

Script is in the Demo.


Instructions
Just put above Main.

Set the Altitude by running a Script: "set_cloud_altitude( altitude, x[optional], y[optional])"
X and Y are speeds.  You can use Negative Numbers for all of the parameters.

Compatibility

No known issues.  If you find one, please let me know and I promise to laugh at you, then I'll try to fix it, I swear!

Credits and Thanks

  • Heretic - Hey, thats me!
  • ForeverZer0 - Thanks for getting me started on this script!

Author's Notes

Fog with a High Altitude is a Cloud.  A Cloud with no Altitude is a Fog.  Clouds can have a Negative Altitude, which allows them to show below your Terrain and over any Panoramas.  I've found that setting an Altitude of -12 seems to work pretty well, especially when there is no X or Y speeds.

There is an additional script provided in the Demo that shows you information on your current Cloud Settings.  This script also allows you to change those settings in the Demo without having to restart each time you want to change a setting.  It is a separate script because you probably dont want your Players to be able to adjust the Cloud Settings the way you can in the Demo.
« Last Edit: May 03, 2015, 10:32:35 AM by Heretic86 »
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Heretic's Cloud Altitude
« Reply #1 on: November 25, 2012, 01:15:50 AM »
Bad ass effect Heretic. Very nice job! *moves*

Offline finalholylight

  • Awakened Visionist
  • **
  • Posts: 77
  • LV: 0
    • View Profile
Re: [XP] Heretic's Cloud Altitude
« Reply #2 on: November 25, 2012, 06:59:46 AM »
Would you mind making this script compatible with H-mode7 script.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 727
  • LV: 29
    • View Profile
Re: [XP] Heretic's Cloud Altitude
« Reply #3 on: November 26, 2012, 03:24:15 AM »
Would you mind making this script compatible with H-mode7 script.

In order to accomplish that, it would require rewriting of the H-mode7 entirely more than it would just making simple modifications to this script.   I think you would have better luck with asking the author of the H-mode7 script to incorporate layered clouds as a visual effect. 
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline finalholylight

  • Awakened Visionist
  • **
  • Posts: 77
  • LV: 0
    • View Profile
Re: [XP] Heretic's Cloud Altitude
« Reply #4 on: November 29, 2012, 01:22:30 PM »
Would you mind making this script compatible with H-mode7 script.

In order to accomplish that, it would require rewriting of the H-mode7 entirely more than it would just making simple modifications to this script.   I think you would have better luck with asking the author of the H-mode7 script to incorporate layered clouds as a visual effect. 
I think if he can do that, it will very laggy, so can you write a method that can ON/OFF this script ?, then before I go to a h-mode7 map, I will OFF this script for not crashing the game.

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 727
  • LV: 29
    • View Profile
Re: [XP] Heretic's Cloud Altitude
« Reply #5 on: November 30, 2012, 04:14:57 AM »
I've thoroughly tested this out with the H-Mode 7 script you are using, and did manage to get it working by placing the clouds script above the Mode 7 Script.  Rearranging script order is a common solution to making many scripts more compatible, just so you know.  The results of being compatible arent pretty though.  The clouds do appear and have the correct effects, however, the effects are correct for a "flat map" but wrong for a perspective map.  So the clouds render as flat in front of the screen.

My conclusion is that the clouds script is compatible as far as code goes, but it just isnt going to work for you because your H-Mode 7 is a pseudo 3d, and this rather simple script is intended for 2D, that and the H-Mode 7 script doesnt handle Fog (or clouds) at all.  Try using any fog without my cloud script and you'll see the same problem.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)