
Xoronatus
Joined: Dec 6, 2010
Taking a break
|
Posted: Jul 28, 2011 11:20 PM
Msg. 1 of 6
So you know how in the Halo UI, if you go into Multiplayer/Edit Gametypes, then you can edit game settings such as the weapons on map, infinite grenades, how long the match will be.
I was wondering can you disable the options of infinite grenades and how long the match will be by using scripts? This way I could force the match to be 10 minutes. So does anybody know?
Xoronatus
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jul 28, 2011 11:26 PM
Msg. 2 of 6
end the game with (sv_end_game)
the grenades, there isn't any script options for things like that, but you can check their grenades. (unit_get_total_grenade_count <unit>) Set something up like make grenades not actually thrown and cause an effect instead. attach something to every player that is damaged by that earlier effect. If that item is damaged, aswell as the total grenade count for them changing, cause an effect that shoots a real grenade. That way they can only throw grenades if their grenade count decreases.
|
|
|

Xoronatus
Joined: Dec 6, 2010
Taking a break
|
Posted: Jul 29, 2011 01:58 AM
Msg. 3 of 6
So is there any way to set the time using scripts?
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jul 29, 2011 02:31 AM
Msg. 4 of 6
(script startup gametimer (sleep 18000) (sv_game_end) ) 30x60=1800 1800x10=18000 thats your 10 minutes. They can still get the game ended before that, there isn't anything to force them to keep playing for atleast 10 minutes, just to prevent them from going over it.
|
|
|

chrisk123999
Joined: Aug 10, 2008
=CE= Chris [Captain] [=]
|
Posted: Jul 29, 2011 06:49 PM
Msg. 5 of 6
It's been awhile, but I'm fairly certain it's: sv_end_game
|
|
|

Xoronatus
Joined: Dec 6, 2010
Taking a break
|
Posted: Jul 29, 2011 09:11 PM
Msg. 6 of 6
Ok that's good. Nice and easy to script. So but is there a way to make it so that there is no time limit?
|
|
|