Raised This Month: $ Target: $400
 0% 

set_pdata_int


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
watch
Senior Member
Join Date: Sep 2005
Old 02-23-2006 , 12:28   set_pdata_int
Reply With Quote #1

The purpose of this is to allow tfc engineers to build more than one sentry and im sorry if im a bit newb, im new to this.

I came across this line on some forums which contains the offset and value for setting the players build status

Code:
	*(word *)((char *)pEntity->pvPrivateData + 346) = 0x0000;
I've tested this and it works (also ive tried 0 instead of 0x0000 and it still works, not sure if it will have any adverse effects as im not familiar with this stuff), basically im having trouble recreating it in amxx, ive tried set_pdata_int(id,346,0) but it doesnt work and also get_pdata_int(id,346) returns 0 when i have a sentry

Quote:
(@BAILOPAN) make sure you keep in mind that set_pdata_int is 4byte aligned
(@BAILOPAN) WORD is 2 bytes, you need set_pdata_short maybe
I can't find anything about set_pdata_short apart from the JGHG2 module for amx, just wondering if it is still possible to do this, and how ?

thanks in advance
__________________
Code:
#include <amusing_small_signiture>
watch is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 02-23-2006 , 16:29  
Reply With Quote #2

there is no set_pdata_short in amxx.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-23-2006 , 16:35  
Reply With Quote #3

YET!
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
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:13.


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