AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Offset or Flag of Client/Weapon on RoundEnd (https://forums.alliedmods.net/showthread.php?t=77330)

SWAT_88 09-10-2008 13:42

Offset or Flag of Client/Weapon on RoundEnd
 
The problem:
If the map ends each player gets frozen.
I tried to check this state with the movetype offset, but if the players get frozen movetype is still MOVETYPE_WALK.

Therefore my questions:
Is there a flag or a offset of the weapons or players which indicates such a roundend?
Or whatever, I need something which indicates the mapend.

Thanks in Advance.:up:

teame06 09-11-2008 01:25

Re: Offset or Flag of Client/Weapon on RoundEnd
 
Check their prop m_fFlags for FL_FROZEN

SWAT_88 09-11-2008 11:15

Re: Offset or Flag of Client/Weapon on RoundEnd
 
Quote:

Originally Posted by teame06 (Post 684263)
Check their prop m_fFlags for FL_FROZEN

Nice!
Thank you!:up:

I will test it.

SWAT_88 09-11-2008 11:44

Re: Offset or Flag of Client/Weapon on RoundEnd
 
Thank you very much, it works perfectly!:up:
++

But I have another question:
If some plugins writes HACK_EndMultiplayerGame the event round_end is not fired. Is there another solution for handle HACK_EndMultiplayerGame?

Thanks in Advance:up:

teame06 09-12-2008 01:47

Re: Offset or Flag of Client/Weapon on RoundEnd
 
Why is it going to fire round_end when that function just ends the map?

SWAT_88 09-12-2008 10:35

Re: Offset or Flag of Client/Weapon on RoundEnd
 
Quote:

Originally Posted by teame06 (Post 684662)
Why is it going to fire round_end when that function just ends the map?

Thats the problem.
I have to print the nextmap on mapend/lastroundend.
If GunGame ends the map because of the winner then the event round_end is not fired. And therefore I have no chance to handle the mapending.
Therefore I need a solution for handling the mapend.

Thanks in Advance!:up:

teame06 09-13-2008 09:36

Re: Offset or Flag of Client/Weapon on RoundEnd
 
Quote:

Originally Posted by SWAT_88 (Post 684786)
Thats the problem.
I have to print the nextmap on mapend/lastroundend.
If GunGame ends the map because of the winner then the event round_end is not fired. And therefore I have no chance to handle the mapending.
Therefore I need a solution for handling the mapend.

Thanks in Advance!:up:

Fire off your own round_end before the HACK_EndMutliplayerGame() yourself. Which means editing gungame.

SWAT_88 09-13-2008 12:04

Re: Offset or Flag of Client/Weapon on RoundEnd
 
Yes, but I think nobody want to edit all their plugins only because of using nextmapinfo.

But thanks anyway.
You brought me to another solution.


All times are GMT -4. The time now is 20:02.

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