- Messages
- 480
- Reaction score
- 240
- Points
- 913
Hello,I give you a cool script : EarthQuake Gun 
Function By : CabCon
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