ItsMods

Full Version: Code problem.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey guys..
I want to make thing for zombie mod: When ice zombie will hit survivor with limb, survivor must be froozen. This is my code but don't work... Help please.

P.S. Not as FreezeTag, function must be as damage.

My code in _globallogic_player.gsc, function: finishPlayerDamageWrapper

Quote:if(eAttacker isZombie() && eAttacker getCurrentOffhand() == "icelimb_mp")
{
iprintLn(self.name + "^2 is frozed");
// blablabla freeze code
}
instead of finishPlayerDamageWrapper() use callback_playerdamage
this is same >.>
finishPlayerDamageWrapper() called from callback_playerdamage
Doesn't hurt to try...
don't work Sad
Post the whole code,I don't know wat you've tried so ...
what the..?
se7en needs HELP?! if he needs help then i shall not even understand what he talks about

*goes away*
(08-19-2011, 19:05)G-Man Wrote: [ -> ]what the..?
se7en needs HELP?! if he needs help then i shall not even understand what he talks about

*goes away*

Yeah, this piece of cod4 code needs to be modified to work @ blops I guessTongue
Stop.. I'm not stealing things now .. not as rotu Fuu
This is my idea
CODE:
Quote:finishPlayerDamageWrapper( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
{
pixbeginevent("finishPlayerDamageWrapper");
surface = "flesh";

if ( self.cac_body_type == "body_armor_mp" )
{
surface = "metal";
}

if ( eattacker isZombie() && eattacker getCurrentOffHand() == "icelimb_mp" )
{
// freeze code
}



self finishPlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime, surface );

if ( GetDvar( #"scr_csmode" ) != "" )
self shellShock( "damage_mp", 0.2 );

self damageShellshockAndRumble( eAttacker, eInflictor, sWeapon, sMeansOfDeath, iDamage );
pixendevent();
}

(08-19-2011, 19:05)G-Man Wrote: [ -> ]what the..?
se7en needs HELP?! if he needs help then i shall not even understand what he talks about

*goes away*

i have bad english ...
Code:
if( eAttacker isZombie() && sWeapon == "icelimb_mp" )
?
Pages: 1 2