GSC EarthQuake Girl

Inactive Account

Old CCM Member
Premium Member
Messages
479
Reaction score
241
Points
913
Hello,today I give you a small gsc script for create an eathquake girl(work : ZM/MP)
Code:
ToggleEarthquakeGirl()
{
if(self.EarthquakeGirl==false)
{
  self.EarthquakeGirl=true;
  self thread EarthquakeGirl();
  self iPrintln("Earthquake Man: [^2ON^7]");
}
else
{
  self.EarthquakeGirl=false;
  level.iPRO delete();
  self notify("EarthquakeGirl");
  self iPrintln("Earthquake Man: [^1OFF^7]");
}
}
EarthquakeGirl()
{
    self endon ( "disconnect" );
self endon ( "EarthquakeGirl" );
    level.iPRO = spawn("script_model", self.origin + (0, 0, 40));
    level.iPRO setModel("defaultactor");
level.effect["1"] = loadfx("explosions/default_explosion");
    while( 1 )
    {
  playfx(level.effect["1"], level.iPRO.origin); wait .1;
  level.iPRO moveto (level.iPRO.origin + (0,0,40),1);
  level.iPRO rotateyaw(2880,2);
  if( distance( self.origin, self.origin ) < 155 )
  Earthquake(0.2,1,self.origin,900000);
  self playsound( "mpl_sd_exp_suitcase_bomb_main" );
  wait 2;
  level.iPRO moveto (level.iPRO.origin - (0,0,40),.1);
  wait .2;
    }
}
 
Top