AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   DHooks (Dynamic Hooks - Dev Preview) (https://forums.alliedmods.net/showthread.php?t=180114)

thetwistedpanda 03-26-2012 13:00

Re: DHooks (Dynamic Hooks - Dev Preview)
 
jointeam* rather than join_team. Why can't you edit the mod and add an immunity feature?

Despirator 03-26-2012 13:02

Re: DHooks (Dynamic Hooks - Dev Preview)
 
i can but it's very stupid do it every time the mod updates

Peace-Maker 03-26-2012 14:33

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Quote:

Originally Posted by Despirator (Post 1676094)
i want to override autobalance function of the hide'n'seek's mod

Mh, just set sm_hns_ct_ratio to 0 if you're talking about this plugin.

Despirator 03-27-2012 03:35

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Quote:

Originally Posted by Peace-Maker (Post 1676157)
Mh, just set sm_hns_ct_ratio to 0 if you're talking about this plugin.

but i want to use autobalance but make immunity for certain players

minimoney1 04-04-2012 18:08

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Quote:

Originally Posted by Despirator (Post 1676516)
but i want to use autobalance but make immunity for certain players

Line 1747
PHP Code:

if (!g_bEnableHnS || !client || !IsClientInGame(client) || GetConVarFloat(g_hCVCTRatio) == 0.0)
{
    return 
Plugin_Continue;


Add this after that line and compile
PHP Code:

if (CheckCommandAccess(client"hns_immunity"ADMFLAG_RESERVATION))
{
    return 
Plugin_Continue;


I'm pretty sure that would work, while still not blocking the "sm_hns_ct_ratio" cvar.

Despirator 04-05-2012 05:52

Re: DHooks (Dynamic Hooks - Dev Preview)
 
I need separate plugin :/

Peace-Maker 04-05-2012 05:58

Re: DHooks (Dynamic Hooks - Dev Preview)
 
This really doesn't belong in this thread. Please post in the propriate plugin thread!

Dr!fter 04-05-2012 14:48

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Updated I added support for Object Pointer params like CTakeDamageInfo in OnTakeDamage. I will write a snippet with stocks to get and set different params for CTakeDamageInfo. Also made it optional to add a removal callback.

Here is a list of the offsets for CTakeDamageInfo as far as I can tell they are correct I did however not test all.
Spoiler

Dr!fter 04-08-2012 21:03

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Updated to 1.0.5-alpha Fixed a crash when a plugin was unloaded and a hook was active with no removal callback.

Bacardi 04-25-2012 03:11

Re: DHooks (Dynamic Hooks - Dev Preview)
 
Typo in description ?
Code:

/* Removes an entity listener hook
 *
 * @param type                        Type listener to remove
 * @param callback                Callback to use
 *
 * @noreturn
*/
native DHookAddEntityListener(ListenType:type, ListenCB:callback);



All times are GMT -4. The time now is 15:27.

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