Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do "you" organize your .hps files?
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#13
RE: How do "you" organize your .hps files?

I do something that's pretty similar to what's already been said:
PHP Code: (Select All)
void OnEnter()
{
///////////////////////////////////
///////////TIME CHANGES///////////
///////////////////////////////////

if (GetGlobalVarInt("NightTriggered") == 0//Daylight to Sunset
    
{
        
FadeLightTo("PointLight_1"1.000f0.558f0.138f0.500f3.50f300.0f);
        
        
AddTimer("FogColour"200.0f"timer_fogcolour");
    }

    if (
GetGlobalVarInt("NightTriggered") == 1//visited map for Sunset-Night
    
{
        
FadeLightTo("PointLight_1"0.061f0.082f0.106f0.500f3.50f0.0f);
                
        
DestroyParticleSystem("ParticleSystem_1");
        
        
SetFogColor(0.053f0.058f0.071f0.500f);
    }
}

////////////////////
///////TIMERS///////
////////////////////
void timer_stoplook(string &in asTimer//Used to stop LookAt
{
    
StopPlayerLookAt();
}

/////////////////////////////////
////////Player Thoughts/////////
/////////////////////////////////
void script_darkness(string &in asParentstring &in asChildint alState)
{
    
SetMessage("Hints""NightTime"0);


So pretty much, large headers to organize based on the type of script or what I'm using it for with side-notes in case I forget what the script does, since I'm not a strong scripter

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 08-09-2013, 07:57 PM by CarnivorousJelly.)
08-09-2013, 07:57 PM
Find


Messages In This Thread
RE: How do "you" organize your .hps files? - by CarnivorousJelly - 08-09-2013, 07:57 PM



Users browsing this thread: 1 Guest(s)