GSC EarthQuake Gun

BaDSooD

Old CCM Member
Premium Member
Messages
594
Points
688
Hello,I give you a cool script : EarthQuake Gun :grinning:
Code:
Earthquake_gun()
{
    if(!isDefined(self.isEarthQuake))
    {
        self.isEarthQuake = true;
        self.Quake_Gun = self getCurrentWeapon();
    }
    else
    {
        self.isEarthQuake = undefined;
        self.Quake_Gun = undefined;
    }

    self iPrintln("Earthquake Gun "+boolTxt(self.isEarthQuake));

    while(isDefined(self.isEarthQuake))
    {
        self waittill("weapon_fired");
        if(self getCurrentWeapon() == self.Quake_Gun)
        {
            position = bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 0, self)["position"];
            earthquake(0.6, 10, position, 99999);
            self iPrintln("Earthquake at: ("+position+")");
        }
    }
}

Function By : CabCon
 

BaDSooD

Old CCM Member
Premium Member
Messages
594
Points
688
why you post 100 funcs lets make a gsc code thread lol^^
I post just 1/2 randoms,to wait a code thread :tongueclosed:
I prepare this,but I have to show and create categories on the thread :tongueclosed:
(I don't post more,it's just for wait)
But hank's for your reply(because I understand you)
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,616
Points
828
I post just 1/2 randoms,to wait a code thread :tongueclosed:
I prepare this,but I have to show and create categories on the thread :tongueclosed:
(I don't post more,it's just for wait)
But hank's for your reply(because I understand you)
Let's collect all scripts and let's make a managed thread code post. :grinning:
 

Top