This is an old revision of the document!
Table of Contents
Minigames & Weapons Overview
Minigames Overview
There are a few minigames built into the game that you can include on your world by activating them in different ways:
- === Hornball ===
- RC Drones
- Racing
- Fishing
- Pub games (Chess, poker, etc)
If you get into scripting you can create your own game rules. Minigames are made easier by making use of the Subgame script system.
Introduction to Weapons
Weapons on your world are created using a combination of settings, the weapons definition file (Data\Weapons.txt) and (optionally) 3d models & sound effects. Weapons can also be tied in to Server Scripts.
Settings control which weapons are assigned to a player (though you can also do this in script) and if/when they're usable. The weapons.txt file is used to set the specific behaviours of each weapon type.
The basic format for a weapon in weapons.txt is as shown:
Weapon 1 { #Spear
Fire=Basic Control=Javelin object=Projectile Speed=1000 graphic=2 delay=1000 item=NONE damage=3 anim=AnimFire
} Weapon 2 { #Plasma gun
Fire=DualAim Control=Basic object=Plasma1KeepHeight Speed=1000 Expiry=300 delay=500 damage=50 sound=2
}
Check the Weapons Reference section for full descriptions of the weapons parameters.
Weapon settings
1. Whether your world allows weapons, or not. To enable weapons on your world you need to set a global World Setting called Fighting.
- settings → World Rules → Fighting
If you set it to 0, weapons will be disabled. If you set it to 1, weapons will be enabled.
2. Whether weapons work everywhere or just in certain places. By default, weapons will be allowed everywhere as long as you have set Fighting to 1, but you can add safe zones where no weapons are allowed.
3. How people on your world are allowed to use weapons. There are 3 options for determining which weapons players can use: 1) *Settings → World → Weapon Selection Mode set to 0 : the weapons a player can use will depend on which vehicle they are in. The primary and secondary weapon types are set in the *Settings → Vehicle sections. 2) *Settings → World → Weapon Selection Mode set to 1 : players will be able to use any weapon item that is currently in their inventory. (Weapon item numbers correspond to the weapon types in your setup file). 3) You can also assign weapons to players via script using *bonusweapon
4. Which controls a player must use to fire different weapons. By default, a vehicle will fire its Primary weapon when a player presses the Tab key, and fire its secondary weapon when a player presses Shift + Ctrl.
There are a few other options for setting the “fire” key for weapons, as well as other modes that allow more than two weapons per vehicle. Which mode you use depends to a large extent on what kind of game you're trying to create. These options are explained in Weapons Control Mode.