https://wiki.kronosaur.com/modding/xml/weapon_devices
http://wiki.kronosaur.com/modding/xml/effects
Old reference to weapon creation and weapon effects.
How is the particle effect of the new APA and the particle effect of PK25 different?
Code: Select all
<Weapon
type= "particles"
damage= "plasma:300; WMD:7"
fireRate= "80"
hitPoints= "30"
deviceSlots= "2"
powerUse= "3000"
sound= "&snRecoillessCannon;"
>
<ParticleSystem
style= "comet"
emitLifetime= "1"
emitRate= "150"
emitSpeed= "50-70"
emitWidth= "50"
particleLifetime= "120"
particleEffect= "&efPlasmaParticleDefault;"
>
</ParticleSystem>
<Effect>
<ParticleSystem
style= "jet"
fixedPos= "true"
emitRate= "2-4"
tangentSpeed= "-8-8"
particleLifetime= "10"
XformTime= "30"
>
<ParticleEffect>
<Orb
instance= "owner"
style= "smooth"
animate= "fade"
radius= "20"
lifetime= "10"
intensity= "20"
blendMode= "screen"
primaryColor= "#feff00"
secondaryColor= "#ff7f00"
/>
</ParticleEffect>
</ParticleSystem>
</Effect>
</Weapon>
APA uses a single shot and <ParticleSystem:
PK25 uses multiple shots of a single image (look at particleCount= "1d11+44" particleSpreadAngle="15" and the single<effect> tag referring to a single <particle> effect tag ):
Code: Select all
<Weapon
type= "particles"
damage= "kinetic:25; WMD:1"
fireRate= "16"
missileSpeed= "40"
lifetime= "60"
powerUse= "150"
particleCount= "1d11+44"
particleSpreadAngle="15"
sound= "&snRecoillessCannon;"
>
<Effect>
<Particle
style= "line"
primaryColor= "#ccf7ff"
secondaryColor= "#2e3233"
/>
</Effect>
</Weapon>
What if I want another effect (like thermoExplosion) to take place after an object has been hit by 50% of the fired particles. How can I program that?
Not sure, maybe if you have time check out <HitEffect>. The problem is it requires knowledge of how many projectiles hit one source which I don't know how to do.
I was wondering. I don't know TLISP, but you guys use "Nil" and "nil" many times. What do they do?
Nil is another name for nil. It means nothing, but depending on the context it could be a string representing nil or a boolean (nil vs true).
Also, AssumedPseudonym and I are on IRC right now, if you want realtime help click
here.