Restarting rounds without resetting team scores
- TITLE -
How to do that ? |
Re: Restarting rounds without resetting team scores
orpheu, two way
1. jump cross the code of resetting team scores (efficient) 2. save scores, hook round restart, set it back. (less efficient than #1) |
Re: Restarting rounds without resetting team scores
What you mean with first method ?
|
Re: Restarting rounds without resetting team scores
find the asm codes which do the reset stuff, mempatch a jmp bytes before it.
|
Re: Restarting rounds without resetting team scores
Found this: g_OfSwapAllPlayers
Which swaps player teams and swaps team scores, but after swaping, people still got weapons they had, money they had :) |
Re: Restarting rounds without resetting team scores
You want only team scores ? Because there are others things resetted.
|
Re: Restarting rounds without resetting team scores
Yeah I need to switch teams, switch team scores, then do restart, set scores back.
|
Re: Restarting rounds without resetting team scores
1 Attachment(s)
You can test that.
Unzip in amxmodx/ directory. What it does : 1/ Hook when a round restart is triggered 2/ Retrieve current team scores 3/ Block coming TeamScore message (because it's updated right away) 4/ Switch team scores 5/ Update scores on scoreboard. PHP Code:
|
Re: Restarting rounds without resetting team scores
Quote:
the score is reset before RoundRestart Pre Hook the correct way is to get CurrentTerroristWins and CurrentCTWins is in TextMsg PHP Code:
|
Re: Restarting rounds without resetting team scores
No, score is reset inside RestartRound, but I'm not sure why I'm checking against GameCommencing and returning. It's likely wrong, it should not return.
You can remove anything related to GameCommencing, it's not needed. since when round is restarting (so when Game Commencing is triggered), m_bCompleteReset is set to true. |
| All times are GMT -4. The time now is 08:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.