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
Scripts
ModManDann Offline
Member

Posts: 61
Threads: 6
Joined: Dec 2010
Reputation: 0
#1
Scripts

Hi folks,

Some scripts I made for you to play around with.
If you got any requests just shoot Smile.

Thunder script:
void StartThunder(float &in afDelay,float &in afTimeBetween)
    {
        SetLocalVarFloat("ThunderTimeBetween",afTimeBetween);
        AddTimer("Thunder",afDelay,"Thunder");
    }
void StopThunder()
    {
        RemoveTimer("Thunder");
    }
void Thunder(string  &in asTimer)
    {
        StartEffectFlash(0.1f,0.1f,0.1f);
        PlaySoundAtEntity("thunder", "general_thunder.snt", "Player", 0.0f,false);
        AddTimer("Thunder",GetLocalVarFloat("ThunderTimeBetween"),"Thunder");
    }

HeartBeat script:
void StartHeartBeat(float &in afDelay)
    {
        AddTimer("HeartBeats",afDelay,"HeartBeat");
    }
void StopHeartBeat()
    {
        RemoveTimer("HeartBeats");
        PlaySoundAtEntity("breath", "react_breath.snt", "Player", 0.0f,false);
    }
void ModifyBeatRate(float &in afModifier)
    {
        AddLocalVarFloat("BeatRate",afModifier);
    }
void HeartBeat(string  &in asTimer)
    {
        
        if(GetLocalVarFloat("BeatRate") <= 0.5f)
            {
                SetLocalVarFloat("BeatRate",2.0f);
            }
        PlaySoundAtEntity("heartbeat","sanity_heartbeat.snt","Player",0.0,false);
        AddTimer("HeartBeats",GetLocalVarFloat("BeatRate"),"HeartBeat");
    }
(This post was last modified: 12-25-2010, 02:03 AM by ModManDann.)
12-25-2010, 01:45 AM
Find
Tenacious Offline
Member

Posts: 79
Threads: 6
Joined: Dec 2010
Reputation: 0
#2
RE: Scripts

You can find these through Frictional scripts very easily, but thanks for the share!
12-25-2010, 01:53 AM
Find
ModManDann Offline
Member

Posts: 61
Threads: 6
Joined: Dec 2010
Reputation: 0
#3
RE: Scripts

Didn't take a look in those yet, I'll go check them out. Thank you to Smile
12-25-2010, 02:03 AM
Find




Users browsing this thread: 1 Guest(s)