View Single Post
Old 08-18-2003, 08:45 AM   #1 (permalink)
JW
Junior Member
 
Join Date: Mar 2003
Location: Netherlands, Hoorn
Posts: 17
Default making the bullet projectile

I am trying to make a bullet projectile for all machinegun units
only thing that doesn`t work is the projectile speed,
if it is to fast, the projectile won`t show and the weapon does no damage too
if you slow it down, the projectile only shows up if the unit fires on it`s maximum range, and much too late for a real bullet impact effect

code:
weapon.ini

Quote:
Weapon RangerAdvancedCombatRifle
PrimaryDamage = 5.0
PrimaryDamageRadius = 0.5 ; 0 primary radius means "hits only intended victim"
AttackRange = 100.0
DamageType = SMALL_ARMS
DeathType = NORMAL
WeaponSpeed = 999999.0 ; dist/sec (huge value == effectively instant)
ProjectileObject = Bullet
FireFX = WeaponFX_GenericMachineGunFire
VeterancyFireFX = HEROIC WeaponFX_GenericMachineGunFireWithRedTracers
ProjectileDetonationFX = WeaponFX_BulletImpact
FireSound = RangerWeapon
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
DelayBetweenShots = 100 ; time between shots, msec
ClipSize = 3 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 700 ; how long to reload a Clip, msec
WeaponBonus = DRONE_SPOTTING RATE_OF_FIRE 200%
WeaponBonus = DRONE_SPOTTING RANGE 200%
WeaponBonus = DRONE_SPOTTING DAMAGE 200%
End

factionunit.ini

Quote:
Object Bullet

; *** ART Parameters ***
Draw = W3DModelDraw ModuleTag_01
OkToChangeModelColor = Yes
DefaultConditionState
Model = None
End
End

; ***DESIGN parameters ***

EditorSorting = SYSTEM
VisionRange = 0.0
ArmorSet
Conditions = None
Armor = ProjectileArmor
DamageFX = None
End

; *** ENGINEERING Parameters ***
KindOf = PROJECTILE SMALL_MISSILE
Body = ActiveBody ModuleTag_02
MaxHealth = 100.0
InitialHealth = 100.0
End

; ---- begin Projectile death behaviors
Behavior = InstantDeathBehavior DeathModuleTag_01
DeathTypes = NONE +DETONATED
;FX = FX_BulletImpactDeath
; we detonated normally.
; no FX, just quiet destroy ourselves
End
; ---- end Projectile death behaviors

Behavior = PhysicsBehavior ModuleTag_06
Mass = 0.1
End
Behavior = MissileAIUpdate ModuleTag_07
TryToFollowTarget = No
FuelLifetime = 10000
InitialVelocity = 3900.0 ; in dist/sec
IgnitionDelay = 0
DistanceToTravelBeforeTurning = 0
IgnitionFX = None
End
Locomotor = SET_NORMAL BulletLocomotor

Geometry = Sphere
GeometryIsSmall = Yes
GeometryMajorRadius = 2.0

End

locomotor.ini


Quote:
Locomotor BulletLocomotor
Surfaces = AIR
Speed = 999999.0 ; in dist/sec
MinSpeed = 999999.0 ; in dist/sec. (THRUST items must have nonzero minspeeds!)
Acceleration = 0.0 ; in dist/(sec^2)
Braking = 0 ; in dist/(sec^2)
TurnRate = 0 ; in degrees/sec
MaxThrustAngle = 0 ; in degrees (NOT degrees/sec)
AllowAirborneMotiveForce = Yes
Appearance = THRUST
End
JW is offline   Reply With Quote