Help Code problem.
#1
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

#2
instead of finishPlayerDamageWrapper() use callback_playerdamage
[Image: MaEIQ.png]

#3
this is same >.>
finishPlayerDamageWrapper() called from callback_playerdamage
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click

#4
Doesn't hurt to try...
[Image: MaEIQ.png]

#5
don't work Sad
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click

#6
Post the whole code,I don't know wat you've tried so ...
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu


#7
what the..?
se7en needs HELP?! if he needs help then i shall not even understand what he talks about

*goes away*
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]

#8
(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
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu


#9
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 ...
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click

#10
Code:
if( eAttacker isZombie() && sWeapon == "icelimb_mp" )
?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu




Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with Rain Effects on Maps mitchhacker 5 7,565 10-22-2013, 00:46
Last Post: mitchhacker
  Help Code color crosshairs koren30 3 5,315 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 11,881 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 4,380 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 5,863 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 12,864 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 7,734 07-28-2013, 01:52
Last Post: First_Semyon
  Help Liberation Problem Yamato 27 30,652 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 8,939 07-03-2013, 19:00
Last Post: Nekochan
  Code of vector Bloodfocus 1 3,359 06-23-2013, 11:54
Last Post: Yamato

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.