[OB] Change Team Score
Edit: https://forums.alliedmods.net/showthread.php?t=183257
The SetTeamScore native (m_iScore) allows you to change the score visually, but it doesn't get saved by the engine (as of OB) and will reset to its 'real' value after a round has ended. Here is one method to change the real value: Code:
I'm sure there is a function that can be called that works better, but this will do for now. |
Re: [OB] Change Team Score
hehe, nice.
*dam Tony. You don't have "ENTERS" on that code... Everything is one line :3 |
Re: [OB] Change Team Score
After further testing it seems like this method works in some cases but not others. Makes it just as unreliable as SetTeamScore.
I'll look into something better. |
Re: [OB] Change Team Score
Yep, noticed same. cs:s
|
Re: [OB] Change Team Score
This is the URL Peace-Maker game me yesterday in IRC - https://developer.valvesoftware.com/wiki/Game_score, but it looks like you don't need it - just here for reference for others :)
|
Re: [OB] Change Team Score
Quote:
|
Re: [OB] Change Team Score
Quote:
I just "quote" Tony post and change forum post "Editor Mode" not "WYSIWYG"-mode. Seems we have [pawn] tags :P Code:
|
Re: [OB] Change Team Score
I'm not exactly up to speed when it comes to manipulating entities, but wouldn't it just be easier to write an abstraction script that gets the current game's gamerules entity and calls the appropriate input on it?
For example, for TF2, getting the tf_gamerules entity and calling AddBlueTeamScore: PHP Code:
|
| All times are GMT -4. The time now is 18:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.