StartTime & EndTime

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

StartTime & EndTime

Post by steeffeen »

I would like to request a change on the game behavior referring "StartTime" and "EndTime"
Currently you can see the countdown (3..2..1..GO!) when the current time is about to hit the StartTime
Additionally you are unable to shoot and to be hit when the StartTime or the EndTime is reached.. That causes authors of scripts to be in need of implementing ugly workarounds..

For example:
Imagine a game mode where you want the time to count down from 3 minutes to 0 and then start to count up again
because of the explained behavior you'll have to set the StartTime to something like 2+ seconds ago when the EndTime is reached.. as you would be unhittable and your weapon is reloaded on StartTime == Now
Ugly thing about it: The timer counts like 3..2..1..0.2..3..4..

I tried using CountdownEndTime of the players UI but you will still have to use the usual StartTime which causes not being able to shoot and stuff...

Does anyone know a better idea to get around this?
If not, Nadeo: Could you please add a decent workaround? Something like...
- An additional CountdownStartTime to the UI
- Add the start countdown (3..2..1..GO!) to the spawn progress

I know it's quite useful that players can't shoot beyond EndTime (used for example in Elite), but that requires some more coding effort for custom game modes (for example adding an own timer)

Thanks in advance
Steff
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    TomRiddle
    Posts: 250
    Joined: 14 Jul 2011, 16:16

    Re: StartTime & EndTime

    Post by TomRiddle »

    I would also like to be able to shut the time and countdown completely off so that a round runs for an unlimited time. Some gamemodes would require this!
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: StartTime & EndTime

    Post by steeffeen »

    TomRiddle wrote:I would also like to be able to shut the time and countdown completely off so that a round runs for an unlimited time. Some gamemodes would require this!
    i'm not sure if it fits your needs but you could just hide the countdown with

    Code: Select all

    UIManager.UIAll.OverlayHideCountdown = True;
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      Post Reply

      Return to “ManiaScript”

      Who is online

      Users browsing this forum: No registered users and 1 guest