i could possibly just extract that part of it and make it a simple add-on or something
Any progress?
Ah, okay.
//datablock portion, obviously incomplete since more sounds are neededdatablock AudioProfile(FallFatalSound0) { fileName = $SMM::Path @ "res/sounds/fallFatal.wav"; description = AudioClosest3D; preload = true;};datablock AudioProfile(FallInjurySound0) { fileName = $SMM::Path @ "res/sounds/fallInjury.wav"; description = AudioClosest3D; preload = true;};package smmDamagePackage { function Armor::damage(%this, %obj, %src, %pos, %damage, %type) { if (%type == $DamageType::Fall) { %obj.specialDamageType = "fall"; if(%obj.isCrouched()) { %damage = %damage * 3; //original value 3 } if(%fatal) { serverPlay3D(FallFatalSound @ getRandom(3), %obj.getPosition()); //name the sounds FallFatalSound(0,1,2,3) ex: FallFatalSound2. for just one sound, remove "@ getRandom(3)" from this and the other line } else { serverPlay3D(FallInjurySound @ getRandom(3), %obj.getPosition()); } %obj.doDripBlood(2); } Parent::damage(%this, %obj, %src, %pos, %damage, %type); //no idea if this needs to be returned, it appears to work fine without }};activatePackage("smmDamagePackage");