game_team_master & game_team_set fix (CS 1.6) v0.3 [UPDATE 15/09/10]
3 Attachment(s)
game_team_master & game_team_set fix (CS 1.6) v0.3 Description:This plugin fix game_team_master and game_team_set entities for CS 1.6. Without this plugin, these entities are always activated, regardless of the team player. Modules: Сstrike Fakemeta Hamsandwich How to use: Quote:
Quote:
ChangeLog: Quote:
|
Re: game_team_master&game_team_set Fix (CS 1.6)
Quote:
|
Re: game_team_master&game_team_set Fix (CS 1.6)
Quote:
|
Re: game_team_master&game_team_set Fix (CS 1.6)
This plugin fails out teh asshole.
|
Re: game_team_master&game_team_set Fix (CS 1.6)
You say teamindex doesn't work, how did you tested ? Looking at the CS code, the keyvalue "teamindex" is well implemented and its offset should be 34 or 35.
|
Re: game_team_master&game_team_set Fix (CS 1.6)
Quote:
ps someone can give a list Entites where used as a team set game_team_master? (as game_player_hurt) They also like in CS does not work. |
Re: game_team_master&game_team_set Fix (CS 1.6)
I testet get_pdata_cbase(ent, 34) - always return -1, regardless of what is really set in editor. 35 - error.
Quote:
|
Re: game_team_master&game_team_set Fix (CS 1.6)
After some checks, the code is the same as HL1, so like you can see in HLSDK :
Code:
Code:
Code:
The problem is in UTIL_TeamsMatch(), because CBaseEntity::TeamID() and CGameTeamMaster::TeamID() return "" in CS. So yes, you can put any teamindex value, it will return always "", thus the check UTIL_TeamsMatch() always true. As solution, you can hook CGameTeamMaster::TeamMatch() with Orpheu and redo the function and checking manually with the offset 35 (m_teamIndex) and cs_get_user_team for activor. EDIT : I was writting the signature of the function when i've seen that in the windows decompiled code, the function is integrated as inline into CGameTeamMaster::Use(). Meaning, for windows It would need to redo the Use() function... :/ Will do it later, anyway. |
Re: game_team_master&game_team_set Fix (CS 1.6)
What should I do? oO
|
Re: game_team_master&game_team_set Fix (CS 1.6)
You can try to do like I've said, after all it's your plugin. But the current solution is not appropriate because the issue is not the teamindex keyvalue, and you should anyway use a proper version which doesn't require a specific change to get working the entity.
|
All times are GMT -4. The time now is 10:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.