world_setup:minigames_weapons
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
world_setup:minigames_weapons [2020/01/29 09:06] – mit | world_setup:minigames_weapons [2023/07/22 07:16] (current) – [Introduction to Weapons] mit | ||
---|---|---|---|
Line 5: | Line 5: | ||
There are a few minigames built into the game that you can include on your world by activating them in different ways: | There are a few minigames built into the game that you can include on your world by activating them in different ways: | ||
- | * Hornball | + | * [[world_setup: |
- | * RC Drones | + | * [[world_setup: |
- | * Racing | + | * [[world_setup: |
- | * Fishing | + | * [[world_setup: |
- | * Pub games (Chess, poker, etc) | + | * [[world_setup: |
If you get into scripting you can create your own game rules. Minigames are made easier by making use of the [[scripting: | If you get into scripting you can create your own game rules. Minigames are made easier by making use of the [[scripting: | ||
Line 15: | Line 15: | ||
==== Introduction to Weapons ==== | ==== Introduction to Weapons ==== | ||
- | Weapons on your world are created using a combination | + | The World Editor (F10) has two main screens for controlling the use of weapons in the world : **Global Weapons Controls** (which sets parameters that affect how weapons |
- | **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 | + | ==== Global Weapons Controls ==== |
- | If you set it to 0, weapons will be disabled. | + | There are 3 main options for determining which weapons players have access |
- | If you set it to 1, weapons will be enabled. | + | 1) ***Weapon Selection Mode** -> **Set By Vehicle** : the weapons |
+ | 2) ***Weapon Selection Mode** -> **Selected by Inventory** : the weapons | ||
+ | 3) You can also assign weapons to players via script using [[reference: | ||
- | **2. Whether weapons work everywhere or just in certain places.** | ||
- | This is determined by the Surface Properties of your world - see Weapon Surface Properties. By default, weapons will be allowed everywhere as long as you have set Fighting to 1, as above, and you haven' | ||
- | **3. How people on your world are allowed | + | On this page you can also set which keys are used to fire weapons |
- | You have two options. You can make the weapons people can use depend on the vehicle they are currently in. Or, you can let anyone | + | |
- | If you set it to 0, the weapons a player can use will depend on which vehicle they are in. | ||
- | If you set it to 1, players will be able to use any weapon item that is currently in their inventory. | ||
- | **4. Which vehicle uses which weapon.** | + | === Other ways of affecting |
- | This only applies if you have Weapon Selection Mode set to 0 (see above). By default, each vehicle on your world can have two weapons: a Primary and a Secondary. This is set for each vehicle in the Vehicle Settings menu. On your world, type *settings and choose Vehicle Settings. Scroll down to the relevant Primary or Secondary weapon setting for each vehicle, and set it to a number between 1 and 48. That's the weapon number it will use. The number corresponds to the weapon numbers in the Weapon Script. | + | |
- | There are also some more advanced modes that allow more than two weapons | + | ** Whether |
+ | 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 | ||
- | **5. 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 + Tab at the same time. | ||
- | There are a few other options for setting the " | ||
- | **6. How each weapon works and what effect it has.** | + | ==== Modifying Weapons.txt directly (Advanced) ==== |
- | How quickly does a weapon fire? How much damage does it do? What's the reload time? All this and more is determined by the parameters set in your Weapon Script. | + | |
- | **7. What each weapon looks like.** | + | Weapons on your world are created using a combination of settings, the weapons definition file (**Data\Weapons.txt**) and (optionally) |
- | This is determined by a combination of the settings in your Weapon Script | + | |
+ | Settings control which weapons are assigned to a player (though you can also do this in script) and if/when they' | ||
+ | |||
+ | <note tip>Use the command ***refreshweap** to reload the Data\Weapons.txt file when you have made changes to it.</ | ||
+ | |||
+ | 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 | ||
+ | { # | ||
+ | Fire=DualAim | ||
+ | Control=Basic | ||
+ | object=Plasma1KeepHeight | ||
+ | Speed=1000 | ||
+ | Expiry=300 | ||
+ | delay=500 | ||
+ | damage=50 | ||
+ | sound=2 | ||
+ | } | ||
+ | |||
+ | Check the [[World Setup:: | ||
+ | |||
+ | |||
+ | ==== Raw Settings for Weapons ==== | ||
+ | |||
+ | **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 [[reference: | ||
+ | |||
+ | |||
+ | **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 " | ||
world_setup/minigames_weapons.1580310402.txt.gz · Last modified: 2020/01/29 09:06 by mit