Hello.
I am working on making spear stick into wall. (I am a newbie at making addons.) Can someone tell me how?
my try:
//projectile
AddDamageType("JavelinDirect", '<bitmap:add-ons/Weapon_Javelin/CI_javelin> %1', '%2 <bitmap:add-ons/Weapon_Javelin/CI_javelin> %1',1,1);
AddDamageType("JavelinRadius", '<bitmap:add-ons/Weapon_Javelin/CI_javelinRadius> %1', '%2 <bitmap:add-ons/Weapon_Javelin/CI_javelinRadius> %1',1,0);
datablock ProjectileData(javelinProjectile)
{
projectileShapeName = "./javelinProjectile.dts";
directDamage = 50;
directDamageType = $DamageType::JavelinDirect;
radiusDamageType = $DamageType::JavelinRadius;
impactImpulse = 1000;
verticalImpulse = 1000;
explosion = spearExplosion;
particleEmitter = spearTrailEmitter;
brickExplosionRadius = 0;
brickExplosionImpact = true; //destroy a brick if we hit it directly?
brickExplosionForce = 20;
brickExplosionMaxVolume = 200;
brickExplosionMaxVolumeFloati ng = 200;
muzzleVelocity = 50;
velInheritFactor = 1;
armingDelay = 0;
lifetime = 20000;
fadeDelay = 19500;
isBallistic = true;
bounceAngle = 170; //stick almost all the time
minStickVelocity = 10;
bounceElasticity = 0.2;
bounceFriction = 0.01;
gravityMod = 0.50;
hasLight = false;
lightRadius = 3.0;
lightColor = "0 0 0.5";
uiName = "Javelin";
Renamed to javelin cause Spear is already made and overwrites edited spear.