DeAcceleration bullet in bf2?
Posted: Mon Apr 04, 2011 5:12 am
Hi,everyone,i`m new here.
Recently i try to modify the bullet in bf2 which is simple and unreal. First of all i want add de-Acceleration factor to projectiles but get trouble.
I can make the bullet reduce speed by setting an engine, but just imagine how slow it could be, the cpu probablely die for that. So , i have to look for other code that can de-accelerate the projectile.
So, i have tested the DeAcceleration code, Unfortunately it dosent work.
or
they failed to reduce the bullet speed. For experiment,i set Acceleration instead, it works fine. Just DeAcceleration can not work.
i dont kown what is wrong with that, here s my experimental bullet tweak, please have a look. Any help will be appreciated.
by the way, the projectlie velocity defined in rifle tweak is
projectile live time is 20, if there is no deacceleration it should end at 200m.
Recently i try to modify the bullet in bf2 which is simple and unreal. First of all i want add de-Acceleration factor to projectiles but get trouble.
I can make the bullet reduce speed by setting an engine, but just imagine how slow it could be, the cpu probablely die for that. So , i have to look for other code that can de-accelerate the projectile.
So, i have tested the DeAcceleration code, Unfortunately it dosent work.
Code: Select all
ObjectTemplate.UseDeAcceleration 1
ObjectTemplate.DeAcceleration 50
Code: Select all
ObjectTemplate.setUseDeAcceleration 1
ObjectTemplate.setDeAcceleration 50/50/50
i dont kown what is wrong with that, here s my experimental bullet tweak, please have a look. Any help will be appreciated.
by the way, the projectlie velocity defined in rifle tweak is
Code: Select all
ObjectTemplate.velocity 10
Code: Select all
ObjectTemplate.create GenericProjectile Projectile_DeAcceleration_Tester
rem-----------------------------
ObjectTemplate.material 9999
ObjectTemplate.damage 50
rem-----------------------------
ObjectTemplate.gravityModifier 0
rem didnt work** ObjectTemplate.setUseDeAcceleration 1
rem didnt work** ObjectTemplate.setDeAcceleration 50/50/50
ObjectTemplate.UseDeAcceleration 1
ObjectTemplate.DeAcceleration 50
ObjectTemplate.createNotInGrid 1
rem ---BeginComp:DefaultCollisionComp ---
ObjectTemplate.createComponent DefaultCollisionComp
rem ---EndComp ---
rem ---BeginComp:DefaultDetonationComp ---
ObjectTemplate.createComponent DefaultDetonationComp
ObjectTemplate.detonation.explosionMaterial 9998
ObjectTemplate.detonation.explosionRadius 3
ObjectTemplate.detonation.explosionForce 0
ObjectTemplate.detonation.explosionDamage 25
ObjectTemplate.detonation.detectionRadius 1
ObjectTemplate.detonation.maxDepthForExplosion 2
ObjectTemplate.detonation.detonateOnWaterCollision 0
ObjectTemplate.detonation.timeUntilCanDetonate 0.08
rem ---EndComp ---
rem ---BeginComp:DefaultProjSoundComp ---
ObjectTemplate.createComponent DefaultProjSoundComp
rem ---EndComp ---
rem ---BeginComp:DefaultRicochetComp ---
ObjectTemplate.createComponent DefaultRicochetComp
rem ---EndComp ---
rem ---BeginComp:DefaultPenetrateComp ---
ObjectTemplate.createComponent DefaultPenetrateComp
ObjectTemplate.penetrate.allowSolidPenetration 1
ObjectTemplate.penetrate.allowLiquidPenetration 0
rem ---EndComp ---
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Point
ObjectTemplate.collisionGroups 8
ObjectTemplate.hasOnTimeEffect 1
ObjectTemplate.timeToLive CRD_NONE/20/0/0