Raised This Month: $51 Target: $400
 12% 

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
snowyiet
Member
Join Date: Jan 2010
Old 01-31-2011 , 16:29   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1101

Can you please add a VPhysicsUpdate hook in the next version of this? I need it to switch a dukehacks plugin to sdkhooks.
snowyiet is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-31-2011 , 18:14   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1102

Quote:
Originally Posted by snowyiet View Post
Can you please add a VPhysicsUpdate hook in the next version of this? I need it to switch a dukehacks plugin to sdkhooks.
Already done.
psychonic is offline
darkjohn20
Junior Member
Join Date: Jun 2009
Old 01-31-2011 , 22:22   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1103

I had a question about OnTraceAttack. I'm trying to modify damage if the attacker and victim are on the same team, but when a grenade is the cause of damage, the teams are always different. How can I get the grenade's owner's team in OnTraceAttack?

PHP Code:
public Action:OnTraceAttack(victim, &attacker, &inflictor, &Float:damage, &damagetype, &ammotypehitboxhitgroup){
     new 
bool:IsTeammate IsTeammate(victimattacker);

     if(
VIsTeam){ //Doesn't work for Grenades.
         
damage *= 0.5;
     }
}
bool:IsTeammate(victimattacker){
     new 
bool:PlayerIsTeammate = (GetClientTeam(victim) == GetClientTeam(attacker));
     return 
PlayerIsTeammate;


Last edited by darkjohn20; 01-31-2011 at 22:24.
darkjohn20 is offline
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Old 02-01-2011 , 00:59   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1104

Quote:
Originally Posted by darkjohn20 View Post
I had a question about OnTraceAttack. I'm trying to modify damage if the attacker and victim are on the same team, but when a grenade is the cause of damage, the teams are always different. How can I get the grenade's owner's team in OnTraceAttack?

PHP Code:
public Action:OnTraceAttack(victim, &attacker, &inflictor, &Float:damage, &damagetype, &ammotypehitboxhitgroup){
     new 
bool:IsTeammate IsTeammate(victimattacker);

     if(
VIsTeam){ //Doesn't work for Grenades.
         
damage *= 0.5;
     }
}
bool:IsTeammate(victimattacker){
     new 
bool:PlayerIsTeammate = (GetClientTeam(victim) == GetClientTeam(attacker));
     return 
PlayerIsTeammate;

You should use OnTakeDamage
__________________
alexip121093 is offline
Send a message via MSN to alexip121093
snowyiet
Member
Join Date: Jan 2010
Old 02-01-2011 , 20:56   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1105

Quote:
Originally Posted by psychonic View Post
Already done.
There's no VPhysicsUpdate hook in the sdkhooks.inc
snowyiet is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-01-2011 , 20:57   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1106

Quote:
Originally Posted by snowyiet View Post
There's no VPhysicsUpdate hook in the sdkhooks.inc
I meant already done in the new, upcoming version.
psychonic is offline
Andersso
Member
Join Date: Nov 2009
Location: E8 2A 2A 2A 2A
Old 02-02-2011 , 17:47   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1107

Nice to hear that a new version is comming, when is it going to be released?
Andersso is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-02-2011 , 18:49   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1108

Quote:
Originally Posted by Andersso View Post
Nice to hear that a new version is comming, when is it going to be released?
in [laziness minus free time] days

Last edited by psychonic; 02-02-2011 at 18:52.
psychonic is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 02-03-2011 , 15:58   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1109

New version. :L it would be grate if there where a list of updates or changes
__________________
Master(d)




Last edited by Master53; 02-06-2011 at 17:41.
Master53 is offline
Samantha
SourceMod Donor
Join Date: Feb 2010
Location: Madagascar
Old 02-03-2011 , 17:20   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#1110

Quote:
Originally Posted by Master53 View Post
glat
__________________
"I give sopport and knolage in making extractions"
"MASTER(D) - dun0: are you mocing me?" -Master the grate

Plugins
Godmode Until Attack | No Block Team Filter
Extensions
Rcon Hooks
Samantha is offline
Closed Thread



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 03:21.


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