mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Repair/Chaingun bug
Cant activate Repair Pack if firing chaingun
This commit is contained in:
parent
47cf0088b7
commit
fa0a1b4c28
|
|
@ -189,7 +189,7 @@ function RepairPackImage::onUnmount(%data, %obj, %node)
|
|||
function RepairPackImage::onActivate(%data, %obj, %slot)
|
||||
{
|
||||
// don't activate the pack if player is piloting a vehicle
|
||||
if(%obj.isPilot())
|
||||
if(%obj.isPilot() || %obj.getImageState(0) $= "Fire") // Cant activate repair pack while firing
|
||||
{
|
||||
%obj.setImageTrigger(%slot, false);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue