Raised This Month: $ Target: $400
 0% 

[HELP] Calling in TakeDamage before TraceAttack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-18-2015 , 16:24   [HELP] Calling in TakeDamage before TraceAttack
Reply With Quote #1

Is there a way i can set something in take damage post, before calling something else in trace attack in the same plugin?

I want to disable the default knockback from CS, then create my own knockback system using TraceAttack
__________________

Last edited by Depresie; 12-18-2015 at 16:29.
Depresie is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-18-2015 , 17:52   Re: [HELP] Calling in TakeDamage before TraceAttack
Reply With Quote #2

look for No Engine Knockback plugin.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-19-2015 , 05:09   Re: [HELP] Calling in TakeDamage before TraceAttack
Reply With Quote #3

That is what i have, the thing is that i want to merge it with the default zombie plague knockback system
__________________
Depresie is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 12-19-2015 , 08:51   Re: [HELP] Calling in TakeDamage before TraceAttack
Reply With Quote #4

here

Quote:
Originally Posted by [zp50] Addon : No Engine Knockback v1.1.0
This plugin disable the cs/cz engine knockback, but not the ZP knockback.
The cs/cz engine knockback is little but noticeable.
[zp50] Addon : No Engine Knockback v1.1.0

Last edited by addons_zz; 12-19-2015 at 10:35.
addons_zz is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-19-2015 , 09:39   Re: [HELP] Calling in TakeDamage before TraceAttack
Reply With Quote #5

but in case i merge to one plugin, no engine knockback is called to store the player's velocity at TakeDamage_Pre then it sets back at TakeDamage_Post

Zombie plague knockback system is called at TraceAttack, so it changes the user's velocity before TakeDamage, doesn't that mean the knockback effect of the zombie plague will get canceled?

Sorry, i can't test this right now..

Also, AFAIK in scripting help, you can ask questions related to scripting, regardless if you post a code or not...there is no such section as Scripting Questions, and Request section is for requesting plugins
__________________

Last edited by Depresie; 12-19-2015 at 09:41.
Depresie is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 12-19-2015 , 11:16   Re: [HELP] Calling in TakeDamage before TraceAttack
Reply With Quote #6

Quote:
Originally Posted by Depresie View Post
Also, AFAIK in scripting help, you can ask questions related to scripting, regardless if you post a code or not...there is no such section as Scripting Questions, and Request section is for requesting plugins
Yes, this still fits here as: You can ask scripting question without a script, but you will win a conceptual answer. Because if you win a script it would be Suggestions / Requests.

Quote:
Originally Posted by Depresie View Post
Is there a way i can set something in take damage post, before calling something else in trace attack in the same plugin?
You want to replace the engine knockback for you new version. I can suggest you to study:

[zp50] Addon : No Engine Knockback v1.1.0
Pain Shock Free
Zombie Plague Mod 5.0 (addons/amxmodx/scripting/zp50/zp50_knockback.sma inside zp_plugin_50_patched.zip).

Last edited by addons_zz; 12-19-2015 at 11:17. Reason: spelling fixes
addons_zz is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-19-2015 , 12:39   Re: [HELP] Calling in TakeDamage before TraceAttack
Reply With Quote #7

ohh god...

i dont need those, i know what they are, what they do, how they work.. all i ask is a method, to call the things i need from takedamage before traceattack
__________________
Depresie is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 12-19-2015 , 13:02   Re: [HELP] Calling in TakeDamage before TraceAttack
Reply With Quote #8

Sorry

Is hard to think without scripts.
addons_zz is offline
Reply


Thread Tools
Display Modes

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 17:58.


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