share/hedgewars/Data/Scripts/Multiplayer/ShoppaMap.lua
changeset 11482 b053f1fb631d
parent 10969 98cab7f366c3
child 13278 7476c1a50738
--- a/share/hedgewars/Data/Scripts/Multiplayer/ShoppaMap.lua	Fri Jan 01 10:49:59 2016 -0500
+++ b/share/hedgewars/Data/Scripts/Multiplayer/ShoppaMap.lua	Fri Jan 01 19:34:48 2016 -0500
@@ -4,14 +4,26 @@
 
 -- Overall padding for roping freedom
 local Padding = 430
+local TeamRope = false
 
 function onParameters()
     parseParams()
     if params["pad"] ~= nil then
         Padding = params["pad"]
     end
+    if params["teamrope"] ~= nil then
+        TeamRope = true
+    end
 end
 
+function onGearAdd(gear)
+    if GetGearType(gear) == gtRope and TeamRope then
+        SetTag(gear,1)
+        SetGearValues(gear,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,GetClanColor(GetHogClan(CurrentHedgehog)))
+    end
+end
+
+
 -- This could probably use less points and more precision
 -- 700x700 for object space
 function DrawStar(x, y, d, f)