share/hedgewars/Data/Scripts/Multiplayer/Random_Weapon.lua
branchphysfslayer
changeset 8043 da083f8d95e6
parent 5352 7f57d0c7816a
child 10036 3be36d2fdca6
equal deleted inserted replaced
8040:448d61778ca7 8043:da083f8d95e6
     1 -- Random Weapons, example for gameplay scripts
     1 -- Random Weapons, example for gameplay scripts
     2 
     2 
     3 -- Load the library for localisation ("loc" function)
     3 -- Load the library for localisation ("loc" function)
     4 loadfile(GetDataPath() .. "Scripts/Locale.lua")()
     4 HedgewarsScriptLoad("/Scripts/Locale.lua")
     5 
     5 
     6 -- Load the gear tracker
     6 -- Load the gear tracker
     7 loadfile(GetDataPath() .. "Scripts/Tracker.lua")()
     7 HedgewarsScriptLoad("/Scripts/Tracker.lua")
     8 
     8 
     9 -- List of available weapons
     9 -- List of available weapons
    10 local weapons = { amGrenade, amClusterBomb, amBazooka, amBee, amShotgun,
    10 local weapons = { amGrenade, amClusterBomb, amBazooka, amBee, amShotgun,
    11             amMine, amDEagle, amDynamite, amFirePunch, amWhip, amPickHammer,
    11             amMine, amDEagle, amDynamite, amFirePunch, amWhip, amPickHammer,
    12             amBaseballBat, amTeleport, amMortar, amCake, amSeduction,
    12             amBaseballBat, amTeleport, amMortar, amCake, amSeduction,