AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Destructible entities (object, boards, stone wall..etc) (https://forums.alliedmods.net/showthread.php?t=291085)

Korasnr 12-01-2016 07:09

Destructible entities (object, boards, stone wall..etc)
 
Hi everyone,

I have another question,

When i play zm_map with destructible entities for example, walls, object, boards, stone wall, etc.
The specific problem is :

This walls, and etc objects have specify HP, for example 1000 hp.
So when i play as human a must this destructible wall shooting with weapon (every weapon has different damage) when i want this wall destroy, when i have more players in team we can this wall destroy more quickly.

But !

Zombies : Zombies have knife damage, normal hit :I don't know exactly... 10-20 per hit,
strong hit : do 65 dmg every hit (right mouse button)

Alone Zombie need deal 16 strong hits, when want destroy destructible wall, (example wall with 1000HP) Nemesis too, and when have more dmg and deal more damage to players. ...
This destructible entities ignor increased melee dmg. (dmg multiplier cvar, etc comands plugin)
For example knife plugin not work for this entities too. (example :butcher knife has so strong dmg, but this entities ignore this dmg)


The main Question is :

How define command or something in scripting when i want destroy this destructible wall when i play with zombie and when i want this wall destroy for example 3-4 hits or when i want deal more dmg example : 200 knife dmg per hit.

I want create ZM class with ability "Quick destroy entities" in zombie Escape.

Thanks for tips,

Best Regards,

R.

georgik57 12-01-2016 07:15

Re: Destructible entities (object, boards, stone wall..etc)
 
I presume you're talking about nemesis and assassin, right?

Korasnr 12-01-2016 07:29

Re: Destructible entities (object, boards, stone wall..etc)
 
Quote:

Originally Posted by georgik57 (Post 2474191)
I presume you're talking about nemesis and assassin, right?

Mr. Georgik
I say in the general issue

Every zombie deal normal damage with this Destructible entities, nemesis, assassin to.
The idea is how comment something in code when o want this destructible wall destroy with 3-4 with zombie_knife hits.

georgik57 12-01-2016 09:08

Re: Destructible entities (object, boards, stone wall..etc)
 
You have to hook damage on func_breakable and modify it if the attacker is a zombie.

See my ZPNM main sma(zombie_plague_nightmare) and look for func_breakable.

If you're gonna try it you will notice how nemesis, assassin, sniper modified damage applies to breakables too.


All times are GMT -4. The time now is 18:07.

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