Raised This Month: $ Target: $400
 0% 

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
TheNoob
Junior Member
Join Date: Jul 2009
Old 10-14-2010 , 11:06   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#891

Where to install it? (extract)
TheNoob is offline
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 10-14-2010 , 11:10   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#892

Quote:
Originally Posted by TheNoob View Post
Where to install it? (extract)
On your server, in the sourcemod folder.
SuperShadow is offline
TheNoob
Junior Member
Join Date: Jul 2009
Old 10-14-2010 , 11:24   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#893

Quote:
Originally Posted by SuperShadow View Post
On your server, in the sourcemod folder.
here?
E:\Program\Steam\steamapps\steamid\source 2007 dedicated server\cstrike\addons\sourcemod
TheNoob is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 10-14-2010 , 13:19   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#894

In addons\sourcemod\extensions.

Actually I couldn't find any wiki/guide about how to install plugins and extensions, other than people asking how to do it on the forums.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-14-2010 , 16:43   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#895

Probably because each plugin or extension can have different files that go in different folders, but in general the plugins and extensions folders are a good place to start (cwuttheydidthur?).
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
jovilasa
Member
Join Date: May 2010
Old 10-15-2010 , 05:47   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#896

sorry dude,

How i install that?

Sorry my english.
jovilasa is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 10-15-2010 , 07:58   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#897

The very same question was answered just a few posts ago (in the same page).
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Danny_l4d
Senior Member
Join Date: Feb 2010
Old 10-15-2010 , 11:11   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#898

I have l4d2, and I am looking for something that blocks the on shot kill with some weapons, now I saw that OnTakeDamage doesnt work is this true?
if not I found this code

PHP Code:
public OnClientPutInServer(client)
{
    
SDKHook(clientSDKHook_OnTakeDamageOnTakeDamage);
}

public 
Action:OnTakeDamage(victim, &attacker, &inflictor,  &Float:damage, &damagetype)
{
    
// for hitscan weapons like glock, inflictor must be a player
    
if (inflictor == || inflictor MaxClients)
        return 
Plugin_Continue;

    
// this shouldn't be able to happen,
    // but better to check instead of leaving possibility of rte
    
if (!IsClientInGame(inflictor))
        return 
Plugin_Continue;

    
decl String:sWeapon[64];
    
GetClientWeapon(inflictorsWeaponsizeof(sWeapon));
    
    if (!
StrEqual(sWeapon"weapon_glock"))
        return 
Plugin_Continue;
    
    
damage *= 999.0;

    return 
Plugin_Changed;

but only for 1 weapon, how do I implent this with more weapons?

PHP Code:
if (!StrEqual(sWeapon"weapon_glock"))
        return 
Plugin_Continue;
    
    
damage *= 999.0;
else if (!
StrEqual(sWeapon"weapon_sniper_awp"))
        return 
Plugin_Continue;
    
    
damage *= 100.0
like this?
__________________
Danny_l4d is offline
jovilasa
Member
Join Date: May 2010
Old 10-15-2010 , 18:31   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#899

Quote:
Originally Posted by rhelgeby View Post
The very same question was answered just a few posts ago (in the same page).

Oh sorry... thank you
jovilasa is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 10-16-2010 , 03:11   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-04-29)
#900

Quote:
Originally Posted by asherkin View Post
TF2 uses a concept of base damage, you can read about the values on the tf2wiki.
The damage value in the callback is correct when both damage spread and criticals are off.
It's impossible to calculate this perfectly from a SM plugin, as you do not have access to the server's random seeds.
CRAP.. I just spent time making a plugin only to figure this out.

Is there nothing that can be done? Can't the extension be modified somehow to handle this scenario??
Thraka 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 11:40.


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