[request] Infection Bomb
Could someone make an "Infection Bomb" like in ZP4.3 but for Zombie Reloaded? Players can buy it for $10,000
|
Re: [request] Infection Bomb
If you could be more specific about what it is... I'm sure that would help.
|
Re: [request] Infection Bomb
it's a special grenade that zombies can buy. when it explodes, it infects all nearby humans.
|
Re: [request] Infection Bomb
with a ratio.. is same than grenade effects plugin Ç(Freezer grenade) but this grenade infect.
|
Re: [request] Infection Bomb
I'm going to try and make this myself using what I can learn from lasermine and grenade-effects.
|
Re: [request] Infection Bomb
2 Attachment(s)
Can somone help me with this? Look at my attached script. I can't get it to compile. :down:
Basically I need to override the hook callback function RestrictCanUse from zr/weapons/restrict.inc and replace it with my own zr_nade_RestrictCanUse. Once I've done that, the rest will be easy. |
Re: [request] Infection Bomb
To do that you'll need to modify ZR itself. You can't override stuff in ZR from other plugins.
The tricky part here is to allow zombies to use grenades without ZR blocking it. What you want to do conflicts with how ZR works. I actually don't know how to do that without modifying ZR itself, but again, then you'll need to do an unofficial special release of ZR with this feature. ZR is using SDK Hooks to block zombies from picking up weapons. If several plugins try to hook this, I guess the most restrictive result (blocking) will be the final result, even if other plugins say it's allowed. |
Re: [request] Infection Bomb
2 Attachment(s)
Quote:
And when I said "override", I meant "replace" ZR's SDKHooks by doing the following: Code:
// replace hooks |
Re: [request] Infection Bomb
Public functions, didn't think about that. So, you are trying to remotely unhook something hooked by ZR? Would be really cool if that's actually possible.
If a function reference is all you need, you can get it by using GetFunctionByName. You'll also need ZR's plugin handle. There might be other ways to find it, but you should be able to get it by iterating through plugins (GetPluginIterator, ReadPlugin, GetPluginInfo) and comparing plugin names until you find it. Also: PHP Code:
If this really works, that's just awesome! Nice hacking! |
Re: [request] Infection Bomb
Quote:
|
All times are GMT -4. The time now is 13:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.