Laser Textures
Posted: 30 Dec 2008, 23:38
Pardon me for asking something that has been answered a zillion times, but what is the correct way to fix the laser textures?
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
They work fine, why fix them?Forboding Angel wrote:Pardon me for asking something that has been answered a zillion times, but what is the correct way to fix the laser textures?
Code: Select all
texture1 = "megaparticle",
texture2 = "empty",
texture3 = "empty",
texture4 = "empty",
Code: Select all
texture1 = "megaparticle",
texture2 = "",
texture3 = "",
texture4 = "",
Flip the 'b' around and you have HitchHiker's Guide to the Galaxy...KDR_11k wrote:Forb, that's not a laser, that's a cannon.
Can you put that into english for me?KDR_11k wrote:Waaaaaaaaaait... Those are multiple billboarded sprites! Forb, that's not a laser, that's a cannon.
Code: Select all
local weaponDefs = {
deathray = {
areaOfEffect = 500,
avoidFeature = false,
avoidFriendly = false,
beamWeapon = true,
cegTag = "electricbolt",
collideFeature = false,
collideFriendly = false,
commandfire = true,
coreThickness = 3,
duration = 0.5,
energypershot = 250000,
explosionGenerator = "custom:NUKE",
fallOffRate = 0.1,
fireStarter = 90,
guidance = true,
id = 666,
impluse = "1",
interceptedByShieldType = 1,
largeBeamLaser = true,
lineOfSight = true,
metalpershot = 0,
name = "Doom Laser",
range = 200000,
reloadtime = 180,
renderType = 0,
rgbColor = "1 0.5 0",
rgbColor2 = "0 0 1",
soundHit = "18402_inferno_xplo.wav",
soundStart = "doomlaser2.wav",
startVelocity = 5000,
sweep = "1",
sweepfire = true,
targetMoveError = 0,
texture1 = "megaparticle",
texture2 = "empty",
texture3 = "empty",
texture4 = "empty",
thickness = 120,
tolerance = 50000,
turret = true,
weaponVelocity = 5000,
damage = {
default = 25000,
},
},
}
unitDef.weaponDefs = weaponDefs
--------------------------------------------------------------------------------
return lowerkeys({ [unitName] = unitDef })
--------------------------------------------------------------------------------