function gunImage::onFire(%this,%obj,%slot){ if(%obj.getDamagePercent() < 1.0) %obj.playThread(2, shiftAway); Parent::onFire(%this,%obj,%slot); }
Code: server.cs (6 lines)function gunImage::onFire(%this,%obj,%slot){ if(%obj.getDamagePercent() < 1.0) %obj.playThread(2, shiftAway); Parent::onFire(%this,%obj,%slot); }
Although, the launcher will overwrite your modifications so either set it to read-only or avoid the launcher and use a batch file.
stateName[0] = "Activate";stateSound[0] = whateversound;restofthestatestuff