# HG changeset patch # User Wuzzy # Date 1568551122 -7200 # Node ID 1c71406fc281a88c80995e41709cca8c2d6d4851 # Parent a87b5e16b8632335130f2135699aab1e0169b5fa Racer: Clean up comments diff -r a87b5e16b863 -r 1c71406fc281 share/hedgewars/Data/Scripts/Multiplayer/Racer.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua Fri Sep 06 19:34:18 2019 +0300 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua Sun Sep 15 14:38:42 2019 +0200 @@ -1,87 +1,29 @@ +--[[ +RACER +map-independant racing script +originally by mikade, edited heavily by others ------------------------------------------- --- RACER 0.8 --- map-independant racing script --- by mikade +----------------------------------------- +Script parameters: +rounds=N +--> The game will be played with N rounds (default: 3) + +waypointradius=N +--> The waypoints have a radius of N pixels (default: 450) + +maxwaypoints=N +--> The maximum number of waypoints to be placed (default: 8) + +teamrope=true +--> The team will be colored in the color of the team. ----------------------------------------- --- DEVELOPER WARNING - FOR OFFICIAL DEVELOPMENT -- --- Be careful when editig this script, do not introduce changes lightly! --- This script is used for time records on the official Hedgewars server. --- Introducing breaking changes means we have to invalidate past time records! - ------------------------------------ ---0.1: took all the code from crazy racer and scrapped most of it ------------------------------------ - --- Removed tumbler system --- Removed extra adds like boosters etc --- Added experimental waypoint placement system --- More user feedback --- Reduced race complexity limit to 5 waypoints --- stop placement at complexity limit reached and end turn --- guys dont keep racing after dying --- invulnerable feasibility --- reverted time keeping method --- reduced feedback display time --- colour-coded addcaptions --- cleaned up code --- support for more players properly added --- tardis fix --- remove airstrikes - --- i think the remainder 0 .456 sec of the tracktime isnt getting reset on newturn - --- update feedback - -------- --- 0.2 -------- - --- allow gameflags --- extend time to 90s --- remove other air-attack based weps --- turn off water rise for sd +DEVELOPER WARNING - FOR OFFICIAL DEVELOPMENT -- +Be careful when editig this script, do not introduce changes lightly! +This script is used for time records on the official Hedgewars server. +Introducing breaking changes means we have to invalidate past time records! -------- --- 0.3 -------- - --- prevent WP being placed in land --- prevent waypoints being placed outside border - -------- --- 0.4 -------- - --- update user feedback --- add more sounds - -------- --- 0.5 -------- - --- fix ghost disappearing if hog falls in water or somehow dies --- lengthen ghost tracking interval to improve performance on slower machines --- increase waypoint limit to 8 --- allow for persistent showmission information - -------- --- 0.6 -------- - --- remove hogs from racing area as per request - -------- --- 0.7 -------- - --- switch to first available weapon if starting race with no weapon selected - -------- --- 0.8 -------- --- allow different boost directions +]] ----------------------------- -- SCRIPT BEGINS @@ -237,23 +179,6 @@ end end ---[[ -Parameters syntax: - -teamrope=true ---> The team will be colored in the color of the team. - -rounds=N ---> The game will be played with N rounds (default: 3) - -waypointradius=N ---> The waypoints have a radius of N pixels (default: 450) - -maxwaypoints=N ---> The maximum number of waypoints to be placed (default: 8) - -]] - function onParameters() parseParams() if params["teamrope"] ~= nil then