Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
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
}
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 5,135
Threads: 241
Joined: Nov 2010
Reputation:
100
instead of finishPlayerDamageWrapper() use callback_playerdamage
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
08-19-2011, 17:07
(This post was last modified: 08-19-2011, 17:07 by Nekochan.)
this is same >.>
finishPlayerDamageWrapper() called from callback_playerdamage
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 5,135
Threads: 241
Joined: Nov 2010
Reputation:
100
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
don't work
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
Post the whole code,I don't know wat you've tried so ...
Posts: 3,054
Threads: 268
Joined: Feb 2011
Reputation:
63
what the..?
se7en needs HELP?! if he needs help then i shall not even understand what he talks about
*goes away*
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
(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 guess
Posts: 3,704
Threads: 147
Joined: Jan 2011
Reputation:
119
08-19-2011, 19:44
(This post was last modified: 08-19-2011, 19:46 by Nekochan.)
Stop.. I'm not stealing things now .. not as rotu
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 ...
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Posts: 1,830
Threads: 104
Joined: Jan 2011
Reputation:
46
Code: if( eAttacker isZombie() && sWeapon == "icelimb_mp" )
?
|