AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   force round end (https://forums.alliedmods.net/showthread.php?t=120887)

worldspawn 03-09-2010 00:52

force round end
 
Hello, is there any way to force the round end?

Arkshine 03-09-2010 04:07

Re: force round end
 
Yes, with orpheu. But right now I don't know how, I will try to figure out.

joaquimandrade 03-09-2010 08:12

Re: force round end
 
Quote:

Originally Posted by Arkshine (Post 1112530)
Yes, with orpheu. But right now I don't know how, I will try to figure out.

In CHalfLifeMultiplay::CheckMapConditions (or Win) there is a check for hostages. You can make that check to always return true.

Seta00 03-09-2010 08:19

Re: force round end
 
Quote:

Originally Posted by joaquimandrade (Post 1112630)
In CHalfLifeMultiplay::CheckMapConditions (or Win) there is a check for hostages. You can make that check to always return true.

Returning always true isn't going to create an infinite round? He asks for forced round end.

joaquimandrade 03-09-2010 08:20

Re: force round end
 
Quote:

Originally Posted by Seta00 (Post 1112634)
Returning always true isn't going to create an infinite round? He asks for forced round end.

No because the check happens when the timer reaches 0. I think so.

dFF 03-09-2010 08:29

Re: force round end
 
If you like: http://forums.alliedmods.net/showthread.php?p=494256

Arkshine 03-09-2010 08:43

Re: force round end
 
Quote:

Originally Posted by joaquimandrade (Post 1112630)
In CHalfLifeMultiplay::CheckMapConditions (or Win) there is a check for hostages. You can make that check to always return true.

I know where to search, I was meant a good way to do that, and by choosing the round end we want ( ct, t etc. )
I think I will decompile the whole function, it will be more easy to understand how is done the function, thus finding the best way to do that.

worldspawn 03-09-2010 12:43

Re: force round end
 
Quote:

Originally Posted by dFF (Post 1112640)

it slays all players, etc. I just want to force round end.

Emp` 03-09-2010 14:17

Re: force round end
 
You could possibly try to rescue all hostages. If there are none on the map, then you can create a hostage and and rescue zone and force a touch between the two. This will probably result in CT's receiving extra money though, but that is easy to fix also.

worldspawn 03-09-2010 14:24

Re: force round end
 
if ill create a hostage in a rescue zone, will it work?
and what to do with message "all hostages have been rescued"?


All times are GMT -4. The time now is 08:38.

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