Post: Classic S&D Fake C4 Glitch!
03-19-2012, 09:34 PM #1
Amanda
Can’t trickshot me!
(adsbygoogle = window.adsbygoogle || []).push({}); Here it is!



Almost everyone does it and then shoots the fake C4 before defusing the bomb...

Now let's modify it a little :evil:

    	FLTrap(owner)
{
tr=spawn("script_model",owner.origin);
tr setModel("weapon_c4_mp");
tr.act=0;
tr.team = owner.team;
tr thread GlowStickDamageListener( owner );
}


    GlowStickDamageListener( owner )
{
self endon ( "death" );
self setCanDamage( true );
// use large health to work around teamkilling issue
self.health = 5000;

for ( ;; )
{
self waittill ( "damage", amount, attacker );

if ( level.teambased && isDefined( owner ) && attacker != owner && ( isDefined( attacker.team ) && attacker.team == self.team ) )
{
self.health += amount;
continue;
}

if ( self.health < (5000-20) )
{
if ( isDefined( owner ) && attacker != owner )
{
//printlnDeBug("Placed entity was damaged");
self playSound("exp_suitcase_bomb_main");
flameFX=loadfx("explosions/aerial_explosion");
playFX(flameFX,self.origin);
DamageArea(self.origin,200,200,200,"c4_mp"); // I know it is a custom function! Replace it with RadiusDamage()
self Delete();
attacker notify ( "destroyed_insertion", owner );
attacker notify( "destroyed_explosive" ); // count towards SitRep Pro challenge
//owner thread leaderDialogOnPlayer( "ti_destroyed" );
}

//attacker thread deleteTI( self );
}
}
}


This was too simple and it exists in every COD game. But I have never seen it in a patch before. Actually it is a way to monitor damage for every entity in the game. You can also use this for your care packages, flags, bunkers, forge options etc.

Now the extended version of this code which I will not post but it is very easy to make if you got how it works!

Javelin Glitch for COD4!



You can even use the damage listener to make an Anti-Team Killing function or an Evil God Mode. The more the damage you take, the stronger you become... You can make your attacker to self suicide when you get damaged etc. Just change the if statements!
    if ( level.teambased && isDefined( owner ) && attacker != owner && ( isDefined( attacker.team ) && attacker.team == self.team ) )
{
self.health += amount;
continue;
}
(adsbygoogle = window.adsbygoogle || []).push({});
03-19-2012, 09:49 PM #2
SnipeNshot
Do a barrel roll!
what patch is that?
03-19-2012, 09:52 PM #3
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by SnipeNshot View Post
what patch is that?


It's her patch, it's not released yet i believe Smile.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo