Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
Reply

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

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

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

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

#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

Reply

#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]
Reply

#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

Reply

#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
Reply

#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

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 8,185 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Problem with Rain Effects on Maps mitchhacker 5 4,862 10-22-2013, 00:46
Last Post: mitchhacker
  Help Code color crosshairs koren30 3 4,016 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,549 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,313 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,134 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,683 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,639 07-28-2013, 01:52
Last Post: First_Semyon
  Help Liberation Problem Yamato 27 24,957 07-17-2013, 19:54
Last Post: feature
  [xna 4]Rendering problem narkos 9 5,946 07-03-2013, 19:00
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
5 Guest(s)

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