equal
deleted
inserted
replaced
192 |
192 |
193 if CurrentHedgehog ~= nil and CurrentHedgehog ~= gear and (not loyal or (GetHogClan(CurrentHedgehog) ~= GetHogClan(gear))) then |
193 if CurrentHedgehog ~= nil and CurrentHedgehog ~= gear and (not loyal or (GetHogClan(CurrentHedgehog) ~= GetHogClan(gear))) then |
194 |
194 |
195 local x,y,color |
195 local x,y,color |
196 local vgear |
196 local vgear |
197 local vgtX, vgtY, vgtdX, vgtdY, vgtAngle, vgtFrame, vgtFrameTicks, vgtState, vgtTimer, vgtTint |
|
198 local dspl = IsHogLocal(CurrentHedgehog) |
197 local dspl = IsHogLocal(CurrentHedgehog) |
199 local ammolist = '' |
198 local ammolist = '' |
200 |
199 |
201 if dspl then |
200 if dspl then |
202 x,y = GetGearPosition(CurrentHedgehog) |
201 x,y = GetGearPosition(CurrentHedgehog) |
223 end |
222 end |
224 x = x + 2 |
223 x = x + 2 |
225 y = y + 32 |
224 y = y + 32 |
226 vgear = AddVisualGear(x, y, vgtAmmo, 0, true) |
225 vgear = AddVisualGear(x, y, vgtAmmo, 0, true) |
227 if vgear ~= nil then |
226 if vgear ~= nil then |
228 vgtX,vgtY,vgtdX,vgtdY,vgtAngle,vgtFrame,vgtFrameTicks,vgtState,vgtTimer,vgtTint = GetVisualGearValues(vgear) |
227 local vgtFrame = w |
229 vgtFrame = w |
228 SetVisualGearValues(vgear,nil,nil,nil,nil,nil,vgtFrame) |
230 SetVisualGearValues(vgear,vgtX,vgtY,vgtdX,vgtdY,vgtAngle,vgtFrame,vgtFrameTicks,vgtState,vgtTimer,vgtTint) |
|
231 end |
229 end |
232 end |
230 end |
233 |
231 |
234 end |
232 end |
235 end |
233 end |