[ZP] Addon: Quad Damage (Human)
2 Attachment(s)
Last night i play Quake 3 Arena with my friend and i got this idea, so i decide to create a plugin that make a similar effect in Quake 3 Arena.
Plugin Descriptions: * On each round but not survivor round, a Quad Damage model will spawn randomly on map, so human need to pickup it to get extra damage multiplier. Cvars: * zp_quad_spawntime 30 -- Interval for 1 Quad Damage model spawning on map. * zp_quad_quadtime 30 -- Quad Damage effect time. * zp_quad_dmgmulti 5 -- Quad Damage multiplier. Modules: * engine * fakemeta * hamsandwich Credits: * David Anderson -- CSDM's collect spawn point. * Quake 3 Arena -- Quad Damage sound. Changes log: * Code optimization, thanks to Excalibur.007. |
Re: [ZP] Addon: Quad Damage (Human)
Nice
PHP Code:
PHP Code:
|
Re: [ZP] Addon: Quad Damage (Human)
+
#1 Is this needed in zp_user_infected_post? PHP Code:
|
Re: [ZP] Addon: Quad Damage (Human)
Quote:
Quote:
PHP Code:
PHP Code:
For example you can watch this simple clip: http://www.youtube.com/watch?v=akUFdbdZky8 |
Re: [ZP] Addon: Quad Damage (Human)
Alright, but you still need to check in TakeDamage if attacker is a player.
|
Re: [ZP] Addon: Quad Damage (Human)
You dont need to check if victim is player since you registered the Ham_TakeDamage with "player" entities only, also if you check pev_valid(victim) with an entity you will get the same results whether the entitiy is player or non-player.
|
Re: [ZP] Addon: Quad Damage (Human)
Quote:
Quote:
|
Re: [ZP] Addon: Quad Damage (Human)
Quote:
and for the (!id | !infector), I don't think is necessary. But if it for known error log, then leave it there. I still don't find problems in ZP 4.3 Fix 5a. |
Re: [ZP] Addon: Quad Damage (Human)
Quote:
if (!infector) return; since sometimes the infector is set to 0 (in the case of first zombie) so if you then do something with the infector (like check its zombie class) then ZP would throw a run-time error. |
Re: [ZP] Addon: Quad Damage (Human)
Oh, didn't notice the problem :X.
|
| All times are GMT -4. The time now is 14:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.