How to do sounds for movement, shooting and impact of units?
Would be nice if someone could show me how to do this, i use Lua for unit defs and .bos for scripts atm.
Sounds for units
Moderator: Moderators
Re: Sounds for units
units do not have sounds on start, moving and stop, you have to write your own lua/bos for it.Erik wrote:How to do sounds for movement
Shooting and impact of a weapon are covered in the weapon description:Erik wrote:shooting and impact of units?
--------------------------------------------------------------------------------
local weaponDef = {
accuracy = 500,
areaOfEffect = 8,
beamTime = 0.4,
beamWeapon = true,
rgbColor = "1 0.7 0.0", -- outer
rgbColor2 = "1 0.7 0.5", -- inner
coreThickness = 0.1,
explosionGenerator = "custom:BulletImpact",
fallOffRate = 0.1,
filename = "weapons/machineguns.tdf",
impactOnly = 0,
impulseFactor = 0,
largeBeamLaser = true,
lineOfSight = true,
movingAccuracy = 500,
name = "100mmacc",
noSelfDamage = true,
range = 500,
reloadtime = 0.4,
renderType = 0,
selfprop = true,
soundHit = "boom1mechgun",
soundStart = "uzisingle",
soundTrigger = true,
sprayAngle = 1024,
startVelocity = 1000,
texture1 = "shot",
texture2 = "empty",
texture3 = "empty",
texture4 = "empty",
thickness = 4,
turret = true,
weaponVelocity = 1000,
damage = {
building = "50",
commander = "80",
default = 140,
},
}
--------------------------------------------------------------------------------
return lowerkeys({["100mmacc"] = weaponDef})
--------------------------------------------------------------------------------
Re: Sounds for units
Check Krogoth in Complete Annihilation or some other big unit. They have step sounds.Erik wrote:How to do sounds for movement