JaypaK
Enthusiast
You can have it as a killstreak or something in a gamemode.
EDIT: 400th post
Ipod link for the video
Please leave positive feedback only.
EDIT: 400th post
Original Code:
Code:
RageMode()
{
self endon ("disconnect");
self endon ("death");
self endon ("rageend");
self thread checkprice();
}
checkprice()
{
cost = 500;
if( self.score >= cost )
{
self.score -= 500;
self thread Pissedoff();
}
else
{
self iPrintlnBold ("^1You don't have enough points! You need 500 points!");
}
}
Pissedoff()
{
self endon ("Pissedoffend");
self iPrintlnBold ("^1Rage has started");
self thread CloseMenu();
self EnableInvulnerability();
self VisionSetNaked("cheat_bw", 1.5);
self SetClientDvar( "r_flamefx_enable", "1" );
self takeallweapons();
self GiveWeapon("zombie_melee");
self SwitchToWeapon("zombie_melee");
self SetMoveSpeedScale( 2 );
self thread thanks_Zona_and_rawr();
self thread PissedTimer();
self thread Weaponz();
self thread TagBodz();
}
PissedTimer()
{
self endon ("PissedTimerend");
wait 60;//I thought 30 was too short but if you want 30 seconds just type 30
self iPrintlnBold ("^2Rage has ended");
self DisableInvulnerability();
self thread Weaponz();
self SetClientDvar( "r_flamefx_enable", "0" );
self VisionSetNaked("default", 1.5);
}
Weaponz()
{
self endon ("weaponzend");
Gun=self GetCurrentWeapon();
wait 60.1;//I thought 30 was too short but if you want 30 seconds just type 30.1
self takeallweapons();
self GiveWeapon(""+Gun+"");
self SwitchToWeapon(""+Gun+"");
self SetMoveSpeedScale( 1 );
self notify("rageend");
self notify("weaponzend");
self notify("PissedTimerend");
self notify("Pissedoffend");
self notify("Thankend");
}
TagBodz()
{
playFx(level._effect["character_fire_death_torso"], self getTagOrigin("J_Shoulder_LE"));
playFx(level._effect["character_fire_death_torso"], self getTagOrigin("J_Shoulder_RI"));
playFx(level._effect["character_fire_death_torso"], self getTagOrigin("J_SpineLower"));
}
thanks_Zona_and_rawr()//Thank you TOXiiC x PLAGUE for this
{
killer = self getentitynumber();
self endon("death");
self endon("disconnect");
self endon("Thanksend");
for(;;)
{
while( self IsFiring() || self IsMeleeing() )
{
trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
while( self IsFiring() || self IsMeleeing() )
{
trace["entity"] aiCheck(killer);
wait .05;
}
}
wait .05;
}
}
aiCheck(killer)//seperate thread cuz it seems to help the bullettrace work better without if's
//just remove this if you want friendly fire i guess lol
{
if(!isdefined(self) || !isalive(self) ){}
else if(isdefined(self.is_zombie) && self.is_zombie)
{
self DoDamage( self.maxhealth+999, self.origin, undefined, undefined, "riflebullet" );
get_players()[killer].score += 100;
get_players()[killer].score_total += 100;
}
}
II UnLmTd III's version
Code:
RageMode()
{
self endon("rage_done");
playFx(level._effect["character_fire_death_torso"], self getTagOrigin("J_Shoulder_LE"));
playFx(level._effect["character_fire_death_torso"], self getTagOrigin("J_Shoulder_RI"));
playFx(level._effect["character_fire_death_torso"], self getTagOrigin("J_SpineLower"));
self iPrintlnBold ("^1Rage has started");
self EnableInvulnerability();
self setBurn( 30 );
self VisionSetNaked("cheat_bw", 1.5);
self takeallweapons();
self GiveWeapon("zombie_melee");
self SwitchToWeapon("zombie_melee");
level.zombie_vars["zombie_insta_kill"] = 1;
wait 30;
level.zombie_vars["zombie_insta_kill"] = 0;
self iPrintlnBold ("^2Rage has ended");
self DisableInvulnerability();
self VisionSetNaked("default", 1.5);
Gun=self GetCurrentWeapon();
self takeallweapons();
self GiveWeapon( Gun );
self SwitchToWeapon( Gun );
self notify("rage_done");
}
oO Di2eamZz's version
Code:
startRage()
{
self endon( "hulk_smash" );
self thread giveRage();
self playLocalSound( "laugh_child" );
for( i = 0; i <= 5; i++ ){
self VisionSetNaked( "zombie_turned", i );
Earthquake( 0.7, i, self.origin, 90 );
wait .05;
}
self notify( "hulk_smash" );
}
giveRage()
{
self endon( "rage_disengaged" );
self.cWeap = self getCurrentWeapon();
self.zWeap = "zombie_melee";
self waittill( "hulk_smash" );
playFx( level._effect["character_fire_death_torso"], self getTagOrigin( "J_Shoulder_LE" ) );
playFx( level._effect["character_fire_death_torso"], self getTagOrigin( "J_Shoulder_RI" ) );
playFx( level._effect["character_fire_death_torso"], self getTagOrigin( "J_SpineLower" ) );
self VisionSetNaked( "kamikaze", 3 );
self EnableInvulnerability();
self setBurn( 30 );
self takeAllWeapons(); self giveWeapon( self.zWeap ); wait 3; self switchToWeapon( self.zWeap );
level.zombie_vars["zombie_insta_kill"] = 1;
wait 30;
self giveWeapon( self.cWeap ); self switchToWeapon( self.cWeap ); wait 1; self takeWeapon( self.zWeap );
level.zombie_vars["zombie_insta_kill"] = 0;
self VisionSetNaked( "default", 3 );
self notify( "rage_disengaged" );
}
Video:
http://www.youtube.com/watch?v=iyrrx8kQxmQIpod link for the video
Please leave positive feedback only.