AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Calling in TakeDamage before TraceAttack (https://forums.alliedmods.net/showthread.php?t=276286)

Depresie 12-18-2015 16:24

[HELP] Calling in TakeDamage before TraceAttack
 
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

NiHiLaNTh 12-18-2015 17:52

Re: [HELP] Calling in TakeDamage before TraceAttack
 
look for No Engine Knockback plugin.

Depresie 12-19-2015 05:09

Re: [HELP] Calling in TakeDamage before TraceAttack
 
That is what i have, the thing is that i want to merge it with the default zombie plague knockback system

addons_zz 12-19-2015 08:51

Re: [HELP] Calling in TakeDamage before TraceAttack
 
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

Depresie 12-19-2015 09:39

Re: [HELP] Calling in TakeDamage before TraceAttack
 
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

addons_zz 12-19-2015 11:16

Re: [HELP] Calling in TakeDamage before TraceAttack
 
Quote:

Originally Posted by Depresie (Post 2373994)
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 (Post 2373994)
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).

Depresie 12-19-2015 12:39

Re: [HELP] Calling in TakeDamage before TraceAttack
 
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

addons_zz 12-19-2015 13:02

Re: [HELP] Calling in TakeDamage before TraceAttack
 
Sorry :oops:

Is hard to think without scripts.


All times are GMT -4. The time now is 17:58.

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