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

Help with Team name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Master53
Veteran Member
Join Date: Dec 2009
Old 01-08-2011 , 20:07   Help with Team name
Reply With Quote #1

how would i change the team name on the score board. i have seen this. "m_szTeamname" but dont really know how to use it or what entity to send it to. this is for hl2dm btw
__________________
Master(d)



Master53 is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 01-08-2011 , 20:08   Re: Help with Team name
Reply With Quote #2

Those are client sided.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 01-09-2011 , 11:03   Re: Help with Team name
Reply With Quote #3

its a net... and can be changed server side. it has been done and i have seen.
__________________
Master(d)



Master53 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-09-2011 , 12:07   Re: Help with Team name
Reply With Quote #4

entity tf_team ?
CTFTeam::m_szTeamname
__________________
Leonardo is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 01-09-2011 , 13:16   Re: Help with Team name
Reply With Quote #5

I remember seeing it somewhere in the gcf files, which would mean it's clientsided.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 01-09-2011 , 17:58   Re: Help with Team name
Reply With Quote #6

Quote:
Originally Posted by Leonardo View Post
entity tf_team ?
CTFTeam::m_szTeamname
thats for tf2 isnt it or dont it matter?

Edit:
because in the net props there is

Code:
CTeam:
 Sub-Class Table (1 Deep): DT_Team
 -Member: m_iTeamNum (offset 856) (type integer) (bits 5)
 -Member: m_iScore (offset 840) (type integer) (bits 32)
 -Member: m_iRoundsWon (offset 844) (type integer) (bits 8)
 -Member: m_szTeamname (offset 808) (type string) (bits 0)
 -Member: player_array_element (offset 0) (type integer) (bits 10)
 -Member: "player_array" (offset 0) (type array) (bits 0)
__________________
Master(d)



Master53 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-09-2011 , 18:21   Re: Help with Team name
Reply With Quote #7

Quote:
Originally Posted by Master53 View Post
thats for tf2 isnt it or dont it matter?
that's from tf2
__________________
Leonardo is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 01-11-2011 , 09:01   Re: Help with Team name
Reply With Quote #8

yea but how would i find that entity for other games?
__________________
Master(d)



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

sm_dump_datamaps
sm_dump_netprops
then go find in datamaps and something with *_team
__________________
Leonardo is offline
Master53
Veteran Member
Join Date: Dec 2009
Old 01-11-2011 , 11:19   Re: Help with Team name
Reply With Quote #10

i had found this

Code:
CBaseEntity - game_player_team
- m_Score (Save)(4 Bytes)
- m_iszMaster (Save|Key)(4 Bytes) - master
- m_iClassname (Save|Key)(4 Bytes) - classname
- m_iGlobalname (Global|Save|Key)(4 Bytes) - globalname
- m_iParent (Save|Key)(4 Bytes) - parentname
- m_iHammerID (Save|Key)(4 Bytes) - hammerid
- m_flSpeed (Save|Key)(4 Bytes) - speed
- m_nRenderFX (Save|Key)(1 Bytes) - renderfx
- m_nRenderMode (Save|Key)(1 Bytes) - rendermode
- m_flPrevAnimTime (Save)(4 Bytes)
- m_flAnimTime (Save)(4 Bytes)
- m_flSimulationTime (Save)(4 Bytes)
- m_nLastThinkTick (Save)(4 Bytes)
- m_nNextThinkTick (Save|Key)(4 Bytes) - nextthink
- m_fEffects (Save|Key)(4 Bytes) - effects
- m_clrRender (Save|Key)(4 Bytes) - rendercolor
- m_nModelIndex (Global|Save|Key)(2 Bytes) - modelindex
- touchStamp (Save)(4 Bytes)
- m_aThinkFunctions (Save)(0 Bytes)
- m_ResponseContexts (Save)(0 Bytes)
- m_iszResponseContext (Save|Key)(4 Bytes) - ResponseContext
- m_pfnThink (Save)(4 Bytes)
- m_pfnTouch (Save)(4 Bytes)
- m_pfnUse (Save)(4 Bytes)
- m_pfnBlocked (Save)(4 Bytes)
- m_pfnMoveDone (Save)(4 Bytes)
- m_lifeState (Save)(1 Bytes)
- m_takedamage (Save)(1 Bytes)
- m_iMaxHealth (Save|Key)(4 Bytes) - max_health
- m_iHealth (Save|Key)(4 Bytes) - health
- m_target (Save|Key)(4 Bytes) - target
- m_iszDamageFilterName (Save|Key)(4 Bytes) - damagefilter
- m_hDamageFilter (Save)(4 Bytes)
- m_debugOverlays (Save)(4 Bytes)
- m_pParent (Global|Save)(4 Bytes)
- m_iParentAttachment (Save)(1 Bytes)
- m_hMoveParent (Global|Save)(4 Bytes)
- m_hMoveChild (Global|Save)(4 Bytes)
- m_hMovePeer (Global|Save)(4 Bytes)
- m_iEFlags (Save)(4 Bytes)
- m_iName (Save)(4 Bytes)
 Sub-Class Table (1 Deep): m_Collision - CCollisionProperty
 - m_vecMins (Global|Save)(12 Bytes)
 - m_vecMaxs (Global|Save)(12 Bytes)
 - m_nSolidType (Save|Key)(1 Bytes) - solid
 - m_usSolidFlags (Save)(2 Bytes)
 - m_nSurroundType (Save)(1 Bytes)
 - m_flRadius (Save)(4 Bytes)
 - m_triggerBloat (Save)(1 Bytes)
 - m_vecSpecifiedSurroundingMins (Save)(12 Bytes)
 - m_vecSpecifiedSurroundingMaxs (Save)(12 Bytes)
 - m_vecSurroundingMins (Save)(12 Bytes)
 - m_vecSurroundingMaxs (Save)(12 Bytes)
 Sub-Class Table (1 Deep): m_Network - CServerNetworkProperty
 - m_hParent (Global|Save)(4 Bytes)
- m_MoveType (Save)(1 Bytes)
- m_MoveCollide (Save)(1 Bytes)
- m_hOwnerEntity (Save)(4 Bytes)
- m_CollisionGroup (Save)(4 Bytes)
- m_pPhysicsObject (Save)(0 Bytes)
- m_flElasticity (Save)(4 Bytes)
- m_flShadowCastDistance (Save|Key)(4 Bytes) - shadowcastdist
- m_flDesiredShadowCastDistance (Save)(4 Bytes)
- m_iInitialTeamNum (Save|Key|Input)(4 Bytes) - TeamNum
- m_iTeamNum (Save)(4 Bytes)
- m_hGroundEntity (Save)(4 Bytes)
- m_flGroundChangeTime (Save)(4 Bytes)
- m_ModelName (Global|Save|Key)(4 Bytes) - model
- m_vecBaseVelocity (Save|Key)(12 Bytes) - basevelocity
- m_vecAbsVelocity (Save)(12 Bytes)
- m_vecAngVelocity (Save|Key)(12 Bytes) - avelocity
- m_rgflCoordinateFrame (Save)(48 Bytes)
- m_nWaterLevel (Save|Key)(1 Bytes) - waterlevel
- m_nWaterType (Save)(1 Bytes)
- m_pBlocker (Save)(4 Bytes)
- m_flGravity (Save|Key)(4 Bytes) - gravity
- m_flFriction (Save|Key)(4 Bytes) - friction
- m_flLocalTime (Save|Key)(4 Bytes) - ltime
- m_flVPhysicsUpdateLocalTime (Save)(4 Bytes)
- m_flMoveDoneTime (Save)(4 Bytes)
- m_vecAbsOrigin (Save)(12 Bytes)
- m_vecVelocity (Save|Key)(12 Bytes) - velocity
- m_iTextureFrameIndex (Save|Key)(1 Bytes) - texframeindex
- m_bSimulatedEveryTick (Save)(1 Bytes)
- m_bAnimatedEveryTick (Save)(1 Bytes)
- m_bAlternateSorting (Save)(1 Bytes)
- m_spawnflags (Save|Key)(4 Bytes) - spawnflags
- m_nTransmitStateOwnedCounter (Save)(1 Bytes)
- m_angAbsRotation (Save)(12 Bytes)
- m_vecOrigin (Save)(12 Bytes)
- m_angRotation (Save)(12 Bytes)
- m_vecViewOffset (Save|Key)(12 Bytes) - view_ofs
- m_fFlags (Save)(4 Bytes)
- m_nSimulationTick (Save)(4 Bytes)
- m_flNavIgnoreUntilTime (Save)(4 Bytes)
- InputSetTeam (Input)(0 Bytes) - SetTeam
- InputKill (Input)(0 Bytes) - Kill
- InputKillHierarchy (Input)(0 Bytes) - KillHierarchy
- InputUse (Input)(0 Bytes) - Use
- InputAlpha (Input)(0 Bytes) - Alpha
- InputAlternativeSorting (Input)(0 Bytes) - AlternativeSorting
- InputColor (Input)(0 Bytes) - Color
- InputSetParent (Input)(0 Bytes) - SetParent
- InputSetParentAttachment (Input)(0 Bytes) - SetParentAttachment
- InputSetParentAttachmentMaintainOffset (Input)(0 Bytes) - SetParentAttachmentMaintainOffset
- InputClearParent (Input)(0 Bytes) - ClearParent
- InputSetDamageFilter (Input)(0 Bytes) - SetDamageFilter
- InputEnableDamageForces (Input)(0 Bytes) - EnableDamageForces
- InputDisableDamageForces (Input)(0 Bytes) - DisableDamageForces
- InputDispatchEffect (Input)(0 Bytes) - DispatchEffect
- InputDispatchResponse (Input)(0 Bytes) - DispatchResponse
- InputAddContext (Input)(0 Bytes) - AddContext
- InputRemoveContext (Input)(0 Bytes) - RemoveContext
- InputClearContext (Input)(0 Bytes) - ClearContext
- InputDisableShadow (Input)(0 Bytes) - DisableShadow
- InputEnableShadow (Input)(0 Bytes) - EnableShadow
- InputAddOutput (Input)(0 Bytes) - AddOutput
- InputFireUser1 (Input)(0 Bytes) - FireUser1
- InputFireUser2 (Input)(0 Bytes) - FireUser2
- InputFireUser3 (Input)(0 Bytes) - FireUser3
- InputFireUser4 (Input)(0 Bytes) - FireUser4
- m_OnUser1 (Save|Key|Output)(0 Bytes) - OnUser1
- m_OnUser2 (Save|Key|Output)(0 Bytes) - OnUser2
- m_OnUser3 (Save|Key|Output)(0 Bytes) - OnUser3
- m_OnUser4 (Save|Key|Output)(0 Bytes) - OnUser4
- CBaseEntitySUB_Remove (FunctionTable)(0 Bytes)
- CBaseEntitySUB_DoNothing (FunctionTable)(0 Bytes)
- CBaseEntitySUB_StartFadeOut (FunctionTable)(0 Bytes)
- CBaseEntitySUB_StartFadeOutInstant (FunctionTable)(0 Bytes)
- CBaseEntitySUB_FadeOut (FunctionTable)(0 Bytes)
- CBaseEntitySUB_Vanish (FunctionTable)(0 Bytes)
- CBaseEntitySUB_CallUseToggle (FunctionTable)(0 Bytes)
- CBaseEntityShadowCastDistThink (FunctionTable)(0 Bytes)
- m_hEffectEntity (Save)(4 Bytes)
Edit:
hear is what i have for the code to change the team but its quite not working atm.

PHP Code:
RenameTeams()
{
    new 
iTeam = -1;
    new 
String:sName[32];
    new 
iTeamNum 0;
    while ((
iTeam FindEntityByClassname(iTeam"game_player_team")) != -1)
    {
        
iTeamNum GetEntData(iTeamFindSendPropInfo("CTeam""m_iTeamNum"));

        
Format(sName32"Team%i"iTeamNum);

        
SetEntDataString(iTeamFindSendPropInfo("CTeam""m_szTeamname"), sName16);
    }

__________________
Master(d)




Last edited by Master53; 01-11-2011 at 11:31.
Master53 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 22:57.


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