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

[CSTRIKE] cs_set_weapon_ammo on linux


  
 
 
Thread Tools Display Modes
Author Message
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-17-2004 , 10:57   [CSTRIKE] cs_set_weapon_ammo on linux
#1

Code in this post

http://forums.alliedmods.net/showthread.php?t=5973

Works perfect on Windows, using it in superheromod. But it doesn't work on linux. I added a server print right before cs_set_weapon_ammo and its getting a valid weaponid and the correct ammo to give but it wont give it
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 10-17-2004 , 11:04  
#2

I would guess the linux offset is wrong.. I seem to recall one of them needing 4 added to it to get the other
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 10-18-2004 , 10:00  
#3

Are you running amd64?

Anyone else seeing this?
Johnny got his gun is offline
SiB
Junior Member
Join Date: Oct 2004
Old 10-18-2004 , 17:28  
#4

No, this server is running a dual 2.8 xeon.
SiB is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-18-2004 , 21:06  
#5

I tested it on the normal linux build. I dont have a 64bit to test it on.

try my demo plugin I posted on linux and I bet it wont work.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-21-2004 , 16:50  
#6

^bump^

is this being looked into? Am I dumb and the only one getting this problem? Please let me know whats going on.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 10-23-2004 , 13:49  
#7

No offsets probably just changed for some reason on linux. This happens from time to time.
Johnny got his gun is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-28-2004 , 20:44  
#8

so........ is this going to be fixed? Can i easily jusy fix it myself? where do you find the offsets?
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 10-29-2004 , 10:47  
#9

Fixed.

The offsets concerning all weapons using Linux was +4 compared to the offsets of Windows, not +5 like all the other offsets. Looked like really no cs_?et_weapon* should have worked on Linux.

Also confirmed all other offsets for all platforms, and doing so I found that the offsets for ammo in backpack were off for all 32 bit systems. This is also fixed.
Johnny got his gun is offline
 



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 17:54.


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