Raised This Month: $ Target: $400
 0% 

Help with Team name


Post New Thread Reply   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 01-11-2011 , 11:33   Re: Help with Team name
Reply With Quote #11

Quote:
Originally Posted by Master53 View Post
hear is what i have for the code to change the team but its quite not working atm.
psychonic is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-11-2011 , 12:17   Re: Help with Team name
Reply With Quote #12

Quote:
Originally Posted by Master53 View Post
i had found this
did you find m_szTeamname in this entity? oh no! it's not there!
__________________
Leonardo is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 01-11-2011 , 14:37   Re: Help with Team name
Reply With Quote #13

Quote:
Originally Posted by Leonardo View Post
did you find m_szTeamname in this entity? oh no! it's not there!
then from that datamap for that entity what would you suggest?
__________________
Master(d)



Master53 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-11-2011 , 15:06   Re: Help with Team name
Reply With Quote #14

this is wrong entity, not what you need. should find another one.

CSS, L4D(2): CCSTeam::m_szTeamname
TF2: CTFTeam::m_szTeamname
...
__________________
Leonardo is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 01-12-2011 , 08:35   Re: Help with Team name
Reply With Quote #15

It can be found in the networked properties only:

Quote:
CTeam:
Sub-Class Table (1 Deep): DT_Team
-Member: m_iTeamNum (offset 876) (type integer) (bits 5)
-Member: m_iScore (offset 860) (type integer) (bits 32)
-Member: m_iRoundsWon (offset 864) (type integer) (bits
-Member: m_szTeamname (offset 82 (type string) (bits 0)
-Member: player_array_element (offset 0) (type integer) (bits 10)
-Member: "player_array" (offset 0) (type array) (bits 0)
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 01-12-2011 , 10:02   Re: Help with Team name
Reply With Quote #16

so i find myself replying in another master53 thread, i tried to resist since the first post but its too irritating to see him make something so simple so complicated.
cteam is a baseclass so look for the derived class for your game in the netprop dump (if it has one), in css its ccsteam, just see what other netclass has "m_szTeamname". then look for that class in the datamap dump, in css it points to cs_team_manager.
i only managed to change the spectate team name in css before it was updated to the orangebox, never tried it after. no one wanted to join team "noobs" on a friends bh server at that time. if i remember correctly each team has its own team manager so in css there were 4: 1 for team unassigned, 1 for spectators, 1 for t's and 1 for ct's

Last edited by blodia; 01-12-2011 at 10:06.
blodia is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-12-2011 , 13:03   Re: Help with Team name
Reply With Quote #17

I download hl2mp ds 10 minutes ago
found CTeam::m_szTeamname in netprops, yeah...
I just did not have it before.
__________________
Leonardo is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 01-12-2011 , 13:24   Re: Help with Team name
Reply With Quote #18

try "team_manager".
blodia is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-12-2011 , 14:57   Re: Help with Team name
Reply With Quote #19

netclass of team_manager entity is a CTeam
__________________
Leonardo is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 01-12-2011 , 15:35   Re: Help with Team name
Reply With Quote #20

woops, it really worxx

__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni 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 03:27.


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