Raised This Month: $7 Target: $400
 1% 

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 03-26-2012 , 13:00   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #21

jointeam* rather than join_team. Why can't you edit the mod and add an immunity feature?
__________________
thetwistedpanda is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 03-26-2012 , 13:02   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #22

i can but it's very stupid do it every time the mod updates
Despirator is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-26-2012 , 14:33   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #23

Quote:
Originally Posted by Despirator View Post
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.
__________________
Peace-Maker is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 03-27-2012 , 03:35   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #24

Quote:
Originally Posted by Peace-Maker View Post
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
Despirator is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 04-04-2012 , 18:08   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #25

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

Last edited by minimoney1; 04-04-2012 at 18:10.
minimoney1 is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 04-05-2012 , 05:52   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #26

I need separate plugin :/
Despirator is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 04-05-2012 , 05:58   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #27

This really doesn't belong in this thread. Please post in the propriate plugin thread!
__________________
Peace-Maker is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-05-2012 , 14:48   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #28

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

Last edited by Dr!fter; 04-05-2012 at 14:48.
Dr!fter is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-08-2012 , 21:03   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #29

Updated to 1.0.5-alpha Fixed a crash when a plugin was unloaded and a hook was active with no removal callback.
Dr!fter is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-25-2012 , 03:11   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #30

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);
Bacardi 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 23:01.


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