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

Latest update = knives only?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
deathcurse
Senior Member
Join Date: Jun 2006
Location: UK
Old 10-13-2011 , 19:25   Latest update = knives only?
Reply With Quote #1

Since the latest CSS update our CSS DM server seems to be only allowing users to use knives. Any ideas?
__________________
Clan of Doom: www.clanofdoom.co.uk
deathcurse is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-13-2011 , 22:36   Re: Latest update = knives only?
Reply With Quote #2

Seems like you don't have the latest gamedata, as the GiveNamedItem offset has changed.
__________________
Peace-Maker is offline
FREIHH
Junior Member
Join Date: Oct 2011
Old 10-14-2011 , 09:35   Re: Latest update = knives only?
Reply With Quote #3

Quote:
Originally Posted by Peace-Maker View Post
Seems like you don't have the latest gamedata, as the GiveNamedItem offset has changed.
Can you be more precise ? I use the gamedata from the 2.1.4 version (06/24/2011) and it doesn't work
FREIHH is offline
FREIHH
Junior Member
Join Date: Oct 2011
Old 10-14-2011 , 14:28   Re: Latest update = knives only?
Reply With Quote #4

Sourcemod updated, it's fine now.
FREIHH is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-14-2011 , 21:09   Re: Latest update = knives only?
Reply With Quote #5

Quote:
Originally Posted by FREIHH View Post
Can you be more precise ? I use the gamedata from the 2.1.4 version (06/24/2011) and it doesn't work
I was talking about the sourcemod gamedata. cssdm didn't change afaik.

To fix the visual spawning glitch in cssdm, change line 135 of dm_spawn_protection.sp from
PHP Code:
SetEntData(clientg_HealthOffset1012);    /* This overflows to show "500" */ 
to
PHP Code:
SetEntData(clientg_HealthOffset1524);    /* This overflows to show "500" */ 
Edit: Attached a compiled one for the lazy guys.
Attached Files
File Type: sp Get Plugin or Get Source (dm_spawn_protection.sp - 424 views - 4.3 KB)
File Type: smx dm_spawn_protection.smx (4.5 KB, 638 views)
__________________

Last edited by Peace-Maker; 10-15-2011 at 07:39.
Peace-Maker is offline
nismoskyline86
Member
Join Date: Nov 2010
Old 10-14-2011 , 21:21   Re: Latest update = knives only?
Reply With Quote #6

Quote:
Originally Posted by Peace-Maker View Post
I was talking about the sourcemod gamedata. cssdm didn't change afaik.

To fix the visual spawning glitch, change line 135 of dm_spawn_protection.sp from
PHP Code:
SetEntData(clientg_HealthOffset1012);    /* This overflows to show "500" */ 
to
PHP Code:
SetEntData(clientg_HealthOffset1524);    /* This overflows to show "500" */ 
Worked perfectly!

Thanks bro <3
nismoskyline86 is offline
.ice
Junior Member
Join Date: Jun 2011
Old 10-14-2011 , 22:33   Re: Latest update = knives only?
Reply With Quote #7

Quote:
Originally Posted by Peace-Maker View Post
I was talking about the sourcemod gamedata. cssdm didn't change afaik.

To fix the visual spawning glitch, change line 135 of dm_spawn_protection.sp from
PHP Code:
SetEntData(clientg_HealthOffset1012);    /* This overflows to show "500" */ 
to
PHP Code:
SetEntData(clientg_HealthOffset1524);    /* This overflows to show "500" */ 
hmm...that didn't do the trick for me...

EDIT* Any other suggestions ?

Last edited by .ice; 10-14-2011 at 22:37.
.ice is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-14-2011 , 22:53   Re: Latest update = knives only?
Reply With Quote #8

Quote:
Originally Posted by .ice View Post
hmm...that didn't do the trick for me...

EDIT* Any other suggestions ?
No other suggestions. Did you reload the plugin afterwards?
Code:
sm plugins reload cssdm/dm_spawn_protection
__________________
Peace-Maker is offline
nikooo777
AlliedModders Donor
Join Date: Apr 2010
Location: Lugano, Switzerland
Old 10-15-2011 , 05:17   Re: Latest update = knives only?
Reply With Quote #9

Quote:
Originally Posted by Peace-Maker View Post
I was talking about the sourcemod gamedata. cssdm didn't change afaik.

To fix the visual spawning glitch, change line 135 of dm_spawn_protection.sp from
PHP Code:
SetEntData(clientg_HealthOffset1012);    /* This overflows to show "500" */ 
to
PHP Code:
SetEntData(clientg_HealthOffset1524);    /* This overflows to show "500" */ 
Edit: Attached a compiled one for the lazy guys.
hey could you please explain me why 1524 and not 1012?
__________________
nikooo777 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-15-2011 , 08:17   Re: Latest update = knives only?
Reply With Quote #10

Quote:
Originally Posted by nikooo777 View Post
hey could you please explain me why 1524 and not 1012?
Both number's first 9 bits equal 500 in binary.
500: 111110100
1012: 1111110100
1524: 10111110100
2036: 11111110100
2548: 100111110100
+512....

It seems the client has a signed 10bit health buffer, if the 10th bit is 1 it can't handle it, as it'd be negative.

As you can see, 1012 has the 10th bit as 1, so raising it to 1524 is fine.

This is only a solution for cssdm, since it's always the same value. ZR would need to handle the health internally and only start displaying from 511 on. Like hooking OnTakeDamage and decrease a global variable of health instead of using the m_iHealth property. That would break compatability with other plugins changing the health though. one would need to monitor m_iHealth and mirror changes to the intern health array..
__________________
Peace-Maker is offline
Reply



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 20:43.


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