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

TF2: Give my sentry to a team mate ?!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 11-25-2007 , 16:27   TF2: Give my sentry to a team mate ?!
Reply With Quote #1

hello,

i want to make a command to give my sentry to another engi ... it works, that i can set the owner of my sentry ... --> "CObjectSentrygun" --> "m_hBuilder"

but in my build menu it says "sentry already build" ... but i can't find the correct value which i have to change, that i can build a new sentry gun ...

any ideas? or does someone know what i have to edit?

thx for help :-)
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
BAILOPAN
Join Date: Jan 2004
Old 11-25-2007 , 17:49   Re: TF2: Give my sentry to a team mate ?!
Reply With Quote #2

Maybe:

Code:
  Sub-Class Table (2 Deep): DT_TFLocalPlayerExclusive
  -Member: m_vecOrigin (offset 716) (type vector) (bits 0)
  -Member: player_object_array_element (offset 0) (type integer) (bits 21)
  -Member: "player_object_array" (offset 0) (type array) (bits 0)
has something to do with it. CTF appears to cache a lot of stuff in a CTFPlayerClassShared entity.
__________________
egg
BAILOPAN is offline
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 11-25-2007 , 18:04   Re: TF2: Give my sentry to a team mate ?!
Reply With Quote #3

hmmm...
how can i get access to that data ? or to that array?

doc says:
PHP Code:
stock GetEntDataArray(entityoffset, array[], arraySizedataSize=4
don't know to get the offset of that array thing or the arraySize? O.o
(my scripting knowlege isn't the best yet)

and there is a class called "CTFWeaponPDA_Engineer_Build" ... does it play any role?
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 12-03-2007 , 00:50   Re: TF2: Give my sentry to a team mate ?!
Reply With Quote #4

BAILOPAN, will you add possibilities to read/modify those arrays in future sourcemod updates?

i searched and tried a lot to give my sentry away ... no chance
__________________
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
BAILOPAN
Join Date: Jan 2004
Old 12-03-2007 , 10:58   Re: TF2: Give my sentry to a team mate ?!
Reply With Quote #5

As I said in another post, someone should file a feature request if they want this.
__________________
egg
BAILOPAN is offline
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 12-03-2007 , 14:01   Re: TF2: Give my sentry to a team mate ?!
Reply With Quote #6

done
__________________
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
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 04:39.


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