Raised This Month: $51 Target: $400
 12% 

Offset or Flag of Client/Weapon on RoundEnd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 09-10-2008 , 13:42   Offset or Flag of Client/Weapon on RoundEnd
Reply With Quote #1

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.
__________________

Last edited by SWAT_88; 09-10-2008 at 16:03.
SWAT_88 is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 09-11-2008 , 01:25   Re: Offset or Flag of Client/Weapon on RoundEnd
Reply With Quote #2

Check their prop m_fFlags for FL_FROZEN
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 09-11-2008 , 11:15   Re: Offset or Flag of Client/Weapon on RoundEnd
Reply With Quote #3

Quote:
Originally Posted by teame06 View Post
Check their prop m_fFlags for FL_FROZEN
Nice!
Thank you!

I will test it.
__________________
SWAT_88 is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 09-11-2008 , 11:44   Re: Offset or Flag of Client/Weapon on RoundEnd
Reply With Quote #4

Thank you very much, it works perfectly!
++

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
__________________
SWAT_88 is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 09-12-2008 , 01:47   Re: Offset or Flag of Client/Weapon on RoundEnd
Reply With Quote #5

Why is it going to fire round_end when that function just ends the map?
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 09-12-2008 , 10:35   Re: Offset or Flag of Client/Weapon on RoundEnd
Reply With Quote #6

Quote:
Originally Posted by teame06 View Post
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!
__________________
SWAT_88 is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 09-13-2008 , 09:36   Re: Offset or Flag of Client/Weapon on RoundEnd
Reply With Quote #7

Quote:
Originally Posted by SWAT_88 View Post
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!
Fire off your own round_end before the HACK_EndMutliplayerGame() yourself. Which means editing gungame.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 09-13-2008 , 12:04   Re: Offset or Flag of Client/Weapon on RoundEnd
Reply With Quote #8

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.
__________________
SWAT_88 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:44.


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