Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Korasnr
Junior Member
Join Date: May 2011
Location: Slovakia
Old 12-01-2016 , 07:09   Destructible entities (object, boards, stone wall..etc)
Reply With Quote #1

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.

Last edited by Korasnr; 12-01-2016 at 07:16.
Korasnr is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-01-2016 , 07:15   Re: Destructible entities (object, boards, stone wall..etc)
Reply With Quote #2

I presume you're talking about nemesis and assassin, right?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Korasnr
Junior Member
Join Date: May 2011
Location: Slovakia
Old 12-01-2016 , 07:29   Re: Destructible entities (object, boards, stone wall..etc)
Reply With Quote #3

Quote:
Originally Posted by georgik57 View Post
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.

Last edited by Korasnr; 12-01-2016 at 07:31.
Korasnr is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-01-2016 , 09:08   Re: Destructible entities (object, boards, stone wall..etc)
Reply With Quote #4

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.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
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 02:29.


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