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
Script Help [SOLVED] Death Teleporting
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#7
RE: Death Teleporting

This?

Spoiler below!
PHP Code: (Select All)
void CollideFallDeath(string &in asParentstring &in asChildint alState)
{    
    
/////////////////////////////////
    //A respawn at random position.
    // If ambush is in progress, we need to use it's checkpoint!
    
if(GetLocalVarInt("AmbushStarted")==0)
    {
        if(
GetLocalVarInt("CPAltar") != 1)
            
CheckPoint("checkpoint_default""PlayerStartArea_6""CPCallAltar""""");
        else{
            
int lRand RandInt(0,2);
            if(
lRand==0CheckPoint("checkFallDeath1""PlayerStartArea_1""CheckPointFallWell""Hints""DeathFall_21_TortureNave");    
            if(
lRand==1CheckPoint("checkFallDeath2""PlayerStartArea_5""CheckPointFallWell""Hints""DeathFall_21_TortureNave");    
            if(
lRand==2CheckPoint("checkFallDeath3""PlayerStartArea_6""CheckPointFallWell""Hints""DeathFall_21_TortureNave");    
        }
    }
    
    
PlaySoundAtEntity("fallaaaaaah""11_fall""Player"0false);
    
PlaySoundAtEntity("fallaaaaaah2""scare_male_terrified5""Player"0false);
    
    
FadeOut(1);
    
    
AddTimer("death1"0.5f"TimerFallDeath");    
    
AddTimer("death2"1"TimerFallDeath");    
}

void TimerFallDeath(string &in asTimer)
{    
    if(
asTimer == "death1"){
        
PlaySoundAtEntity("bump1""player_bodyfall""Player"0false);
        return;
    }    
    
    
DisableDeathStartSound();
    
AddPlayerHealth(-200);
    
    
PlaySoundAtEntity("pain""player_falldamage_max""Player"0false);
    
PlaySoundAtEntity("bump2""player_bodyfall""Player"0false);
}    



void CheckPointFallDeath(string &in asNameint alCount)
{
    
//Do nothing??



(This post was last modified: 09-20-2014, 09:37 AM by Straxedix.)
09-20-2014, 09:37 AM
Find


Messages In This Thread
[SOLVED] Death Teleporting - by Straxedix - 09-20-2014, 09:21 AM
RE: Death Teleporting - by Amnesiaplayer - 09-20-2014, 09:26 AM
RE: Death Teleporting - by Straxedix - 09-20-2014, 09:27 AM
RE: Death Teleporting - by Radical Batz - 09-20-2014, 09:28 AM
RE: Death Teleporting - by Straxedix - 09-20-2014, 09:34 AM
RE: Death Teleporting - by Radical Batz - 09-20-2014, 09:34 AM
RE: Death Teleporting - by Straxedix - 09-20-2014, 09:37 AM
RE: Death Teleporting - by Radical Batz - 09-20-2014, 09:38 AM
RE: Death Teleporting - by Straxedix - 09-20-2014, 09:39 AM
RE: Death Teleporting - by Radical Batz - 09-20-2014, 09:40 AM
RE: Death Teleporting - by Straxedix - 09-20-2014, 09:41 AM
RE: Death Teleporting - by Radical Batz - 09-20-2014, 09:47 AM
RE: Death Teleporting - by Straxedix - 09-20-2014, 09:54 AM
RE: Death Teleporting - by Radical Batz - 09-20-2014, 09:55 AM
RE: Death Teleporting - by Straxedix - 09-20-2014, 10:06 AM
RE: Death Teleporting - by Radical Batz - 09-20-2014, 10:07 AM
RE: Death Teleporting - by Straxedix - 09-20-2014, 10:08 AM
RE: [SOLVED] Death Teleporting - by Radical Batz - 09-20-2014, 10:13 AM



Users browsing this thread: 5 Guest(s)