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.000f, 0.558f, 0.138f, 0.500f, 3.50f, 300.0f);
        
        
AddTimer("FogColour", 200.0f, "timer_fogcolour");
    }

    if (
GetGlobalVarInt("NightTriggered") == 1) //visited map for Sunset-Night
    
{
        
FadeLightTo("PointLight_1", 0.061f, 0.082f, 0.106f, 0.500f, 3.50f, 0.0f);
                
        
DestroyParticleSystem("ParticleSystem_1");
        
        
SetFogColor(0.053f, 0.058f, 0.071f, 0.500f);
    }
}

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

/////////////////////////////////
////////Player Thoughts/////////
/////////////////////////////////
void script_darkness(string &in asParent, string &in asChild, int 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)