Raised This Month: $ Target: $400
 0% 

Request , Make me a Bigmomma attack ,will pay $30


Post New Thread Reply   
 
Thread Tools Display Modes
crazylf2
Member
Join Date: May 2004
Old 02-09-2009 , 08:48   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #51

Quote:
Originally Posted by arkshine View Post
It seems ZombiePlague hook TakeDamage, so whatever the damage you get you will turn out a zombie right away.

I think the situation 1 can be solved by replacing the both 'ExecuteHamB' by 'ExecuteHam' . Try and tell me.

But for situation 3 I don't know. At least modifying only this plugin, not sure if it's possible and ZombiePlague doesn't provide any forward to block an infection. :/ . A solution would be to create a forward or native, whatever in my plugin or zombieplague plugin, so to block the forward TakeDamage in ZombiePlague plugin.. If you don't mind I can give a try.
Can you explain that more briefly, i really don't understand what you're talkin

anyway Try any methods that is possible
crazylf2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-09-2009 , 09:03   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #52

Sorry. :p

I've updated the code. Re-download.

Now you have to modify your zombie plague plugin :

- Search "public plugin_natives()" => above the function, add : "native zp_block_infection( id );"
- Search "if (victim == attacker || !is_user_connected(attacker))" ( in fw_TakeDamage function ) => replace by "if (victim == attacker || !is_user_connected(attacker) || zp_block_infection( victim ))"

Tell me if it works now.

[EDIT : Re-download to be sure, I've removed a line )]

Last edited by Arkshine; 02-09-2009 at 09:11.
Arkshine is offline
crazylf2
Member
Join Date: May 2004
Old 02-09-2009 , 10:13   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #53

Quote:
Originally Posted by arkshine View Post
Sorry. :p

I've updated the code. Re-download.

Now you have to modify your zombie plague plugin :

- Search "public plugin_natives()" => above the function, add : "native zp_block_infection( id );"
- Search "if (victim == attacker || !is_user_connected(attacker))" ( in fw_TakeDamage function ) => replace by "if (victim == attacker || !is_user_connected(attacker) || zp_block_infection( victim ))"

Tell me if it works now.

[EDIT : Re-download to be sure, I've removed a line )]
it does not work ,and it removed the zombie plague completely
crazylf2 is offline
crazylf2
Member
Join Date: May 2004
Old 02-09-2009 , 10:14   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #54

Can you use set_user_health as well ?
crazylf2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-09-2009 , 10:22   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #55

I've tested myself with the version 4.1 and it works fine... What's your version ?

About the situation, since you can die, it's better to use Ham_TakeDamage. Btw, the trick is only for the situation 3.
I can use just pev_health for situation 3, but you won't see the damage HUD icon nor the 'slowdown'/sound effect . Though I can show the Hud icon and play the sound, it will use more code.

Last edited by Arkshine; 02-09-2009 at 10:28.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-09-2009 , 10:41   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #56

Okay, try this. Re-download. [ Edit : Download again, please, if you was downaloed already :p ]

For situation 3, i've just let pev_health + offset ( to show the HUD icon ). I've removed all previous stuffs. Back to your original ZombiePlague plugin too. Fastly tested, seems to work.
For situation 1, ExecuteHam instead of ExecuteHamB should not let Zombieplague to hook it. So it should work fine.

Last edited by Arkshine; 02-09-2009 at 10:47.
Arkshine is offline
crazylf2
Member
Join Date: May 2004
Old 02-10-2009 , 03:50   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #57

Quote:
Originally Posted by arkshine View Post
Okay, try this. Re-download. [ Edit : Download again, please, if you was downaloed already :p ]

For situation 3, i've just let pev_health + offset ( to show the HUD icon ). I've removed all previous stuffs. Back to your original ZombiePlague plugin too. Fastly tested, seems to work.
For situation 1, ExecuteHam instead of ExecuteHamB should not let Zombieplague to hook it. So it should work fine.
can you come to my server and have a test ?
crazylf2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2009 , 05:59   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #58

I can't, already tried... You have a non-steam server... :/

It doesn't work ?
Arkshine is offline
crazylf2
Member
Join Date: May 2004
Old 02-10-2009 , 06:20   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #59

Quote:
Originally Posted by arkshine View Post
I can't, already tried... You have a non-steam server... :/

It doesn't work ?
I need to test the plugin
crazylf2 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2009 , 06:21   Re: Request , Make me a Bigmomma attack ,will pay $30
Reply With Quote #60

didn't you have another but steam server ?


Quote:
I need to test the plugin
There are a lot of players on your server, why can't you test ? Oo

Last edited by Arkshine; 02-10-2009 at 06:42.
Arkshine 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 16:26.


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