share/hedgewars/Data/Scripts/Multiplayer/ShoppaMap.lua
changeset 11482 b053f1fb631d
parent 10969 98cab7f366c3
child 13278 7476c1a50738
equal deleted inserted replaced
11479:846a3b3a3d1c 11482:b053f1fb631d
     2 
     2 
     3 local ObjectList = {}
     3 local ObjectList = {}
     4 
     4 
     5 -- Overall padding for roping freedom
     5 -- Overall padding for roping freedom
     6 local Padding = 430
     6 local Padding = 430
       
     7 local TeamRope = false
     7 
     8 
     8 function onParameters()
     9 function onParameters()
     9     parseParams()
    10     parseParams()
    10     if params["pad"] ~= nil then
    11     if params["pad"] ~= nil then
    11         Padding = params["pad"]
    12         Padding = params["pad"]
    12     end
    13     end
    13 end
    14     if params["teamrope"] ~= nil then
       
    15         TeamRope = true
       
    16     end
       
    17 end
       
    18 
       
    19 function onGearAdd(gear)
       
    20     if GetGearType(gear) == gtRope and TeamRope then
       
    21         SetTag(gear,1)
       
    22         SetGearValues(gear,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,GetClanColor(GetHogClan(CurrentHedgehog)))
       
    23     end
       
    24 end
       
    25 
    14 
    26 
    15 -- This could probably use less points and more precision
    27 -- This could probably use less points and more precision
    16 -- 700x700 for object space
    28 -- 700x700 for object space
    17 function DrawStar(x, y, d, f)
    29 function DrawStar(x, y, d, f)
    18 -- default scale is 700x700 or so
    30 -- default scale is 700x700 or so