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

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
hectorz0r
Senior Member
Join Date: Oct 2008
Old 06-28-2010 , 10:47   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#711

Quote:
Originally Posted by p3tsin View Post
Tested on a dedicated linux machine and on a listen windows. Both work flawlessly.
Surely works as long as no1 join the server, because as soon as they join the server will crash on windows. Havent tested on linux yet.
__________________

hectorz0r is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 06-28-2010 , 10:50   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#712

Quote:
Originally Posted by hectorz0r View Post
Surely works as long as no1 join the server, because as soon as they join the server will crash on windows. Havent tested on linux yet.
Obviously I joined the server and tried switching weapons. Nothing wrong on my end.
__________________
plop
p3tsin is offline
hectorz0r
Senior Member
Join Date: Oct 2008
Old 06-28-2010 , 10:54   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#713

Quote:
Originally Posted by p3tsin View Post
Obviously I joined the server and tried switching weapons. Nothing wrong on my end.
Quite strange since this is the only function using sdkhooks on my whole plugin and whenever i comment it out the server remains stable for long. Double checked everything once again and found nothing wrong at all, except that with this whenever someone attemps to join it result in a crash. A print of the error would help i guess?
__________________

hectorz0r is offline
cskiwi
Junior Member
Join Date: Jan 2010
Old 06-28-2010 , 11:06   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#714

Quote:
Originally Posted by asherkin View Post
Psychonic has already replied to you with how to fix that on the previous page, you need to download SDKHooks from the first post in this thread, the version bundled with sm_hosties (without even any attribution) is outdated.
As I already said before:

and installed FIRST Sm_hosties and then
I downloaded and installed the sdkhooks131-obv-sm13.zip From Tsunami-productions
cskiwi is offline
mad_hamster
Member
Join Date: Nov 2009
Old 06-28-2010 , 13:13   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#715

Quote:
Originally Posted by psychonic View Post
Putting on SDK Hooks without any plugins that use it will not lockup the server, even if there are incorrect offsets. This is because no hooks are created unless a plugin tells it to create them.
You are correct. I did put hosties, but didn't override the sdkhooks extension DLL, and the server locked up. I checked it now, and if I remove the hosties plugin (and leave the sdkhooks extension) the server does not lock up. Once I reload hosties, it locks up immediately. The sdkhooks dll is positively the correct one.

Psychonic, if you need a windows server to test your extension on I'll gladly provide you one with an FTP account.

Thanks.
mad_hamster is offline
Warbucks
Senior Member
Join Date: Jun 2008
Location: Canada
Old 06-28-2010 , 16:12   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#716

Can someone take a look at this code. It's not adjusting the radius or damage.

Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>

#pragma semicolon 1

#define PLUGIN_VERSION "1.0.0.1"

#define DEBUG 1

//cvars
new Handle:cvar_version;
new Handle:cvar_damage;
new Handle:cvar_radius;

public Plugin:myinfo =
{
	name = "SuperNades",
	author = "L. Duke, updated by Warbucks",
	description = "increase power and radius of grenades",
	version = PLUGIN_VERSION,
	url = "http://www.sourcemod.net/"
};
 
public OnPluginStart()
{
	// register cvars
	cvar_version = CreateConVar("sm_supernades_version", PLUGIN_VERSION, "SuperNades Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
	cvar_damage = CreateConVar("sm_supernades_damage", "3.0", "damage multiplier", FCVAR_PLUGIN);
	cvar_radius = CreateConVar("sm_supernades_radius", "2.0", "radius multiplier", FCVAR_PLUGIN);
}
 

// entity listener
public OnEntityCreated(entity, const String:classname[])
{
	// change grenade properties
	if (StrEqual(classname, "hegrenade_projectile"))
	{
		new Float:damage = GetEntPropFloat(entity, Prop_Data, "m_flDamage") * GetConVarFloat(cvar_damage);
		new Float:radius = GetEntPropFloat(entity, Prop_Data, "m_DmgRadius") * GetConVarFloat(cvar_radius);
		SetEntPropFloat(entity, Prop_Data, "m_flDamage", damage);
		SetEntPropFloat(entity, Prop_Data, "m_DmgRadius", radius);
	}
	return;
}
Warbucks is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-29-2010 , 12:06   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#717

If anyone on gmod was using this, you need to now switch to the CSS/TF2/DODS version and use the attached gamedata file as of last night's update.
Attached Files
File Type: txt sdkhooks.games.txt (23.4 KB, 345 views)
psychonic is offline
cskiwi
Junior Member
Join Date: Jan 2010
Old 06-29-2010 , 16:43   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#718

Quote:
Originally Posted by psychonic View Post
If anyone on gmod was using this, you need to now switch to the CSS/TF2/DODS version and use the attached gamedata file as of last night's update.
how do you attach it?
cskiwi is offline
dataviruset
AlliedModders Donor
Join Date: Feb 2009
Location: Hong Kong
Old 06-29-2010 , 16:45   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#719

Quote:
Originally Posted by cskiwi View Post
how do you attach it?
You are going to use the attached gamedata file above, not attach it yourself ;)
dataviruset is offline
cskiwi
Junior Member
Join Date: Jan 2010
Old 06-29-2010 , 16:57   Re: [EXTENSION] SDK Hooks 1.3 (Updated 2010-05-12)
#720

Quote:
Originally Posted by dataviruset View Post
You are going to use the attached gamedata file above, not attach it yourself ;)
HU? now I'm totaly confused

but does this also fix the probs for my error:



and installed FIRST Sm_hosties and then
I downloaded and installed the sdkhooks131-obv-sm13.zip From Tsunami-productions
cskiwi 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 15:26.


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