REQUEST GSC

silentsx1

Well-Known Member
Messages
3
Reaction score
0
Points
201
I need working code for
Lowering map barrier
Bounce
slide like azza
and kill meter //if player kill someone it will show distence
 

CF4_99

Veteran
Messages
145
Reaction score
56
Points
888
Bounce On Any Map Entity Or Spawned Entity With Custom Bounce Height of your choice for each entity.
Code:
TestBounce() //This is an example of how to call SpawnBounce on an entity.
{
    bounceObj = spawnSM(self.origin,"com_plasticcase_friendly");
    bounceObj thread SpawnBounce(900);
}

SpawnBounce(bounceHeight)
{
    while(isDefined(self))
    {
        foreach(player in level.players)
        {
            if(Distance(self.origin, player.origin) < 25)
                player SetVelocity(player GetVelocity()+(0,0,bounceHeight));
        }
        wait .01;
    }
}

Lower Death Barriers: You can either put this in your init to lower them automatically, or make it into a function.
Code:
DeathBarriers = GetEntArray("trigger_hurt", "classname");
foreach(Barrier in DeathBarriers)
    Barrier.origin = (0,0,9999999);
 
Top