Raised This Month: $51 Target: $400
 12% 

FW_TakeDamage - Question


Post New Thread Reply   
 
Thread Tools Display Modes
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 03-10-2011 , 15:29   Re: FW_TakeDamage - Question
Reply With Quote #41

Quote:
Originally Posted by Exolent[jNr] View Post
Is the plugin running?
What version of AMXX do you have?
Steam or Non-Steam?
Does the victim have real armor (nothing like a nanosuit armor)?

1. Wait, am I suppose to run the plugin you wrote or just insert the registers and functions in the Nanosuit plugin?
2. AMXX Version 1.8.1.
3. I have Steam, but I'm testing on Non-Steam, I think it doesn't matter..
4. No, the player does not have real armor.
hellmoss is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-10-2011 , 19:52   Re: FW_TakeDamage - Question
Reply With Quote #42

1. Test the plugin as its own plugin.
3. Test on Steam.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 03-13-2011 , 06:58   Re: FW_TakeDamage - Question
Reply With Quote #43

I had to make some checks:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

public plugin_init()
{
    
RegisterHam(Ham_TakeDamage"player""HamTakeDamagePlayer");
}

public 
HamTakeDamagePlayer(victiminflictorattackerFloat:damagedamage_bits)
{
    if (!
zp_get_user_zombie(attacker) && !zp_get_user_survivor(attacker) && zp_get_user_nemesis(attacker))
    {
        
SetHamParamFloat(4float(get_user_health(victim)));
    }

But still doesn't work, it's like before, like this plugin doesn't do anything.

By the way, I forgot to mention that when nemesis hits me my energy goes down to 0 and on the second hit if my energy is less than 100 (it could be 99) I die.
hellmoss is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-15-2011 , 09:15   Re: FW_TakeDamage - Question
Reply With Quote #44

Don't add anything to the code. Test it like I gave it on Steam.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hellmoss
Senior Member
Join Date: Oct 2009
Location: ZOMBIE PLAGUE
Old 03-16-2011 , 07:34   Re: FW_TakeDamage - Question
Reply With Quote #45

First when I tested it without checks, when I was human and shooting the nemesis, with 1 bullet I made 12 000 dmg.. I don't even want to think what other things are going to happen, so I made some checks.
hellmoss is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode