Garry's Mod

Garry's Mod

2,314 ratings
MelonRacer
33
12
5
19
18
8
14
5
5
8
2
2
7
4
3
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Cartoon, Comic, Fun
File Size
Posted
Updated
19.327 MB
12 Dec, 2022 @ 7:58am
17 Sep, 2024 @ 6:06pm
76 Change Notes ( view )

Subscribe to download
MelonRacer

In 2 collections by figardo
MelonRacer Collection
38 items
GMod 9 Gamemodes
3 items
Description
CS:S is not required.

WE HAVE A DISCORD! https://discord.gg/4H3XHWwWvu

GitHub: https://github.com/figardo/MelonRacer

F.A.Q
How do I start the game?
Click where it says Sandbox in the bottom right, then select MelonRacer in that list.
When you're in the game, left click to spawn.

I keep getting stuck at the bridge section on gm_melonrace.
Switch to the x86-64 beta branch (tutorial), or play mr_redux instead.

What is this?
This is the MelonRacer gamemode ported directly from GMod 9 into GMod 13, with optional enhancements.

MelonRacer was created by Garry Newman and included with GMod 9 as a default gamemode around late 2005. It was removed in the move to Steam with GMod 10.

A complete remake by Garry was released for GM11 on June 12 2008. This version is drastically different from the GM9 version, having a much slower melon speed, different UI, and a new map (mr_test). It was removed at some point during GMod 11 or 12.

Future unofficial ports of the gamemode to both GMod 12 and 13 would drastically stray from the original, such as by adding powerups and changing the melon speed, leaving the GM9 original largely forgotten. This port is based directly on the GMod 9 original, meaning you get the original experience by default.

This version also features extensive mod support, including hooks for most events, integration into GMod's translation system[crowdin.com], and a custom track builder that doesn't require Hammer. It also fixes as many bugs with the original version as possible without affecting the gameplay.

Included Maps
  • gm_melonrace by Garry Newman (6 players):
    The original MelonRacer map.

  • gm_melonlockdown by Garry Newman / Valve (21 players):
    Another original MelonRacer map, which takes place in Nova Prospekt.

  • mr_redux by figardo / Garry Newman (12 players):
    A modified version of gm_melonrace, which adds back missing props, raises the height of the checkpoints so they can't be jumped over, doubles the number of spawns, fixes the issue of getting stuck near the bridge, and has further optimizations.

  • mr_test by Garry Newman (20 players):
    The map that came with the GMod 11 remake of MelonRacer.

  • melon_castle by Robbis_1 (9 players):
    Came with MelonRacer 1.3. A combination of mazes and tunnels.

  • melon_eight by Robbis_1 (6 players):
    Came with MelonRacer 1.3. A figure of eight loop.

  • melon_race_10 by ReaperSWE(?) (12 players):
    An updated version of a map included with MelonRacer deluxe.

Commands
CLIENT
  • mr_checkpointsplit (default 0):
    Enable or disable showing time elapsed when reaching a checkpoint.

  • mr_helpscreen:
    Show help text (bound to F1 by default).

  • mr_clickcontrols (default 0):
    When enabled, left click will act as a forward button, and right click will act as a back button.

  • mr_hudscale (default 1):
    Increase or decrease the scale of the text displayed on the HUD.

  • mr_nametagscale (default 1):
    Increase or decrease the scale of the player name tags.

  • mr_camspeed (default 0.25):
    Change how quickly the camera zooms in or out.

  • mr_betahud (default 0):
    Enable the GMod 8.4 beta HUD. Disables the stats HUD, replaces the lap animation with text, and shows "Checkpoint 0" when that checkpoint is hit.

SERVER
  • mr_forwardspeed (default 170):
    Change the speed of the melon when going forwards.

  • mr_reversespeed (default 40):
    Change the speed of the melon when going backwards.

  • mr_laps (default 10):
    Change the number of laps required to win a round.

  • mr_rounds (default 6):
    If Fretta-Like Map Voting is installed, a vote will be called after this many rounds. Set to 0 to disable completely.

  • mr_model (default models/props_junk/watermelon01.mdl):
    Change the model of the melons.

  • mr_restartround:
    Trigger a round restart.

  • mr_respawntime (default 3):
    Change the time it takes to respawn after death.

  • mr_countdown (default 3):
    Change the countdown from a round start until the melons are allowed to move.

  • mr_postround (default 10):
    Change the time it takes from a round ending for a new round to begin.

  • mr_ultrashortcut (default 0):
    Disables check to make sure melon passed the final checkpoint, allowing some maps to have huge shortcuts.

  • mr_godmode (default 0):
    Makes all melons invincible. (and blue)

  • mr_checkpointrespawn (default 0):
    When enabled, melons will respawn at their last checkpoint hit instead of the very start.

  • mr_override_mapsettings (default 0):
    Allows server hosts to ignore gamemode settings enforced by the map. ONLY ENABLE IF YOU KNOW WHAT YOU'RE DOING!


Developers
You can find a list of all hooks in gamemode/hookexamples.lua, including some functional examples.

Mappers
You can find the VMFs for mr_redux and mr_test here![drive.google.com]

An FGD file has been included (or can be downloaded here)[drive.google.com], which contains 3 entities:
  • gmod_runfunction:
    Used in conjunction with trigger_multiple for checkpoint functionality:
    - Make sure your triggers have the flag "Physics Objects" ticked.
    - Set FunctionName to "HitCheckpoint".
    - Create the input RunScriptInteger with the checkpoint ID as its parameter.
    - Checkpoint IDs start at 0 for the start/finish line, and increment by 1 for each successive checkpoint.

  • gmod_player_start:
    Legacy spawnpoint. Not required for the gamemode, any entity following the format *_player_* will work.

  • mr_map_settings:
    Optional, allows you to set gamemode settings when the map is loaded. This includes:
    - Lap Count
    - Melon Model
    - Melon Speed
    - Enable Shortcuts
    - Enable Checkpoint Respawns
    - Enable God Mode
    - Countdown Timer
    - Postround Timer
    - And an author time for players to beat.

Only use the "checkpoint" or "trigger_checkpoint" entities if you want your map to be backwards compatible with GMod 11 and MelonRacer 1.3 respectively.

Alternatively, you can retrofit existing maps with checkpoints and spawns using these tools.

Translators
If you would like to contribute a translation to the gamemode, visit the CrowdIn page.[crowdin.com]

Be warned that languages with extra or non-latin characters may cause issues with the game's fonts.

Speedrunners
The melon physics between GM9 and GM13 are different. As such, when submitting speedruns of this version, please use the GM13 categories.

You can find the current GM13 speedrun pages here:

Credits
Garry Newman - Creating the gamemode.
figardo - Porting and adding enhancements.
Richter Overtime - Asking for the port, adding icons and backgrounds, making the video.
Popular Discussions View All (22)
53
15 Dec, 2024 @ 4:35pm
PINNED: BUGS!
figardo
26
3
4 Dec, 2023 @ 7:21am
melon chain
nightmares626
17
4 Jan, 2024 @ 5:57pm
Richterovertime
RudyJapanHero
583 Comments
fern 26 Jan @ 5:56pm 
racing with the melons!!!!!!
sometimes 22 Jan @ 10:13am 
why game automatic sets sandbox, not melon race
hunter.williams.0218 13 Jan @ 3:55pm 
:melon:
hunter.williams.0218 13 Jan @ 3:54pm 
:melon:
VovanDoomer 30 Dec, 2024 @ 2:08am 
yay, im now melon racist :lunar2019madpig::steamhappy::lunar2019madpig:
Dr.Freeman42 26 Dec, 2024 @ 6:13am 
::melon:::melon:::melon:::melon:::melon:::melon:::melon:::melon:::melon:::melon:::melon:::melon:v::melon:::melon:::melon:::melon:::melon:::melon:::melon:v::melon:::melon:::melon:
Dui 25 Dec, 2024 @ 10:53am 
:melon:
cool 23 Dec, 2024 @ 3:52pm 
:melon:
:melon:
wingeels 16 Dec, 2024 @ 9:43am 
:melon: :melon::melon: :melon::melon: :melon::melon: :melon::melon: :melon::melon: :melon::melon: :melon::melon: :melon::melon: :melon::melon: :melon::melon: :melon:
Mafioznik 15 Dec, 2024 @ 9:06pm 
:melon: