How to achieve cumulative effect on death pool?
1 Attachment(s)
Hi, guys. I cannot figure out how to summarize all kills made with, say, he grenade or awp. I want to allow players to set money showing their kills and the problem here is not to update money, since I have all the necessary messages, but a fact that game engine processes death messages one by one and so when someone kills multiple enemies at once, the hud always shows +1 kill, though the total number of kills is correct. I want it to be cumulative, how to make it show +2, ..., +5 kills? I did some message logging, and here is what I got:
PHP Code:
1. I wish I could rely on client_death, but this forward is not triggered on suicide (team change) or amxmodx user_slap( function. 2. I tried to use set_task_ex(0.01, "death_msg_timer") to set a timer, but for some reason it takes too much time to execute the code (173 ms) 3. Damage message appears to be triggered after all DeathMsg messages, but again it is not triggered on team change, etc... I completely lost at this point. Is the timer single possible solution to this problem? Except client_preThink which I do not want to consider actually. Is it possible to somehow catch these console messages? PHP Code:
Ps: for those who have no idea what I am talking about, please see attachments (notice +1 above 4). |
Re: How to achieve cumulative effect on death pool?
I am sorry, I spent many hours with no success to achieve this goal and only after creating this thread I have found out that there is a function RequestFrame. I hope this will help someone in the future.
|
Re: How to achieve cumulative effect on death pool?
You can create a player global variable and store in it the current gametime when the player dies/killed, and update the players kills after one or two seconds passed from the last kill.
PHP Code:
|
Re: How to achieve cumulative effect on death pool?
Quote:
|
Re: How to achieve cumulative effect on death pool?
very poor implementation for just hooking grenade multikill
Quote:
PHP Code:
|
Re: How to achieve cumulative effect on death pool?
Quote:
|
Re: How to achieve cumulative effect on death pool?
Quote:
|
| All times are GMT -4. The time now is 15:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.