mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 16:14:35 +00:00
Repair/Chaingun bug
Cant activate Repair Pack if firing chaingun
This commit is contained in:
parent
47cf0088b7
commit
fa0a1b4c28
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ function RepairPackImage::onUnmount(%data, %obj, %node)
|
||||||
function RepairPackImage::onActivate(%data, %obj, %slot)
|
function RepairPackImage::onActivate(%data, %obj, %slot)
|
||||||
{
|
{
|
||||||
// don't activate the pack if player is piloting a vehicle
|
// 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);
|
%obj.setImageTrigger(%slot, false);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue