equal
deleted
inserted
replaced
1079 |
1079 |
1080 if placed then |
1080 if placed then |
1081 -- Pay the price |
1081 -- Pay the price |
1082 clanPower[GetHogClan(CurrentHedgehog)] = clanPower[GetHogClan(CurrentHedgehog)] - placedExpense |
1082 clanPower[GetHogClan(CurrentHedgehog)] = clanPower[GetHogClan(CurrentHedgehog)] - placedExpense |
1083 RenderClanPower() |
1083 RenderClanPower() |
|
1084 if cat[cIndex] == "Girder Placement Mode" or cat[cIndex] == "Rubber Placement Mode" then |
|
1085 PlaySound(sndPlaced) |
|
1086 end |
1084 else |
1087 else |
1085 if IsHogLocal(CurrentHedgehog) then |
1088 if IsHogLocal(CurrentHedgehog) then |
1086 AddCaption(loc("Invalid Placement"), colorMessageError, capgrpVolume) |
1089 AddCaption(loc("Invalid Placement"), colorMessageError, capgrpVolume) |
1087 end |
1090 end |
1088 PlaySound(sndDenied) |
1091 PlaySound(sndDenied) |
1199 elseif (curWep == amCMObjectPlacer) then |
1202 elseif (curWep == amCMObjectPlacer) then |
1200 cIndex = catReverse[teamLObjectMode[team]] |
1203 cIndex = catReverse[teamLObjectMode[team]] |
1201 RedefineSubset() |
1204 RedefineSubset() |
1202 updateCost() |
1205 updateCost() |
1203 updated = true |
1206 updated = true |
|
1207 end |
|
1208 |
|
1209 if curWep == amCMStructurePlacer or curWep == amCMCratePlacer or curWep == amCMObjectPlacer then |
|
1210 SetSoundMask(sndIncoming, true) |
|
1211 else |
|
1212 SetSoundMask(sndIncoming, false) |
|
1213 end |
|
1214 if curWep == amGirder or curWep == amRubber then |
|
1215 SetSoundMask(sndDenied, true) |
|
1216 else |
|
1217 SetSoundMask(sndDenied, false) |
1204 end |
1218 end |
1205 |
1219 |
1206 if updated then |
1220 if updated then |
1207 AddCaption(loc(cat[cIndex]), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage) |
1221 AddCaption(loc(cat[cIndex]), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage) |
1208 showModeMessage() |
1222 showModeMessage() |