Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Tue Apr 23, 2024 7:00 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Wed Dec 27, 2006 5:34 am 
Offline
User avatar

Joined: Wed Nov 24, 2004 12:00 am
Posts: 257
Location: New York City
I have read the SSM tutorial on removing some weapons from vehicles ( Partially Disabling Vehicles ) and I have been successful thus far with most but this one, ( the DCX Suicide Boat ) has been a little tricky.

I would like to remove the KamikazeBoatBomb from this boat to make it a regular speed boat and add some speed boosters on the secondary fire ( setInputFire c_PIAltFire ).

I have tried using the following code in the ObjectSpawnTemplates.con for the DCX map "Midway_Brit" to remove code pointing to the weapons in the Objects.con for this vehicle (rem *** Weapons ***
ObjectTemplate.addTemplate KamikazeBoatFireArmsInstant
ObjectTemplate.addTemplate KamikazeBoatFireArms )

ObjectTemplate.active KamikazeBoatComplex
ObjectTemplate.removeTemplate 16
ObjectTemplate.removeTemplate 16


The above code works only for clients whom I have sent the SSM file to ( Midway_Brit_024.rfa ) , all others without the file get disconnected from the server.
When we were in the server testing out the speed boosters for the Speed Boat, we noticed that the boosters did NOT activate right away, instead there was like a 10 second delay untill the boosters kicked in.
Could this be due because the boosters activation key is set to c_PIAltFire and the same key is used for the activation of the BoatBomb c_PIAltFire that has a line in the code that reads ObjectTemplate.FireDelay 10 ?

I want this to be a true SSM so NO downloading is required for clients.

Here is the code from the "objects\Vehicles\Sea\SuicideBoat\Weapons.con"

rem ------------------------------------------------
rem *** Suicide boat Firearms ***
rem ------------------------------------------------
ObjectTemplate.create FireArms KamikazeBoatFireArms
ObjectTemplate.setNetworkableInfo KamikazeBoatGunInfo
ObjectTemplate.setAsynchronyFire 1
ObjectTemplate.projectileTemplate KamikazeBoatBomb
ObjectTemplate.projectilePosition 0/1/0
ObjectTemplate.magSize 1
ObjectTemplate.numOfMag 1
ObjectTemplate.velocity 0
ObjectTemplate.autoReload 0
ObjectTemplate.reloadtime 30
ObjectTemplate.roundOfFire 0.1
ObjectTemplate.fireingForce 0
ObjectTemplate.setInputFire c_PIAltFire
ObjectTemplate.AmmoType 0
ObjectTemplate.DestroyVehicleWhenNoAmmo 1
ObjectTemplate.FireDelay 10

rem ------------------------------------------------
rem *** Suicide boat Firearms ***
rem ------------------------------------------------
ObjectTemplate.create FireArms KamikazeBoatFireArmsInstant
ObjectTemplate.setNetworkableInfo KamikazeBoatGunInfo
ObjectTemplate.setAsynchronyFire 1
ObjectTemplate.projectileTemplate KamikazeBoatBomb
ObjectTemplate.projectilePosition 0/1/0
ObjectTemplate.magSize 1
ObjectTemplate.numOfMag 1
ObjectTemplate.velocity 0
ObjectTemplate.autoReload 0
ObjectTemplate.reloadtime 30
ObjectTemplate.roundOfFire 0.1
ObjectTemplate.fireingForce 0
ObjectTemplate.setInputFire c_PIFire
ObjectTemplate.AmmoType 0
ObjectTemplate.DestroyVehicleWhenNoAmmo 1
ObjectTemplate.FireDelay 0

rem ------------------------------------------------
rem *** Suicide Boat Bomb ***
rem ------------------------------------------------
ObjectTemplate.create Projectile KamikazeBoatBomb
ObjectTemplate.createNotInGrid 1
ObjectTemplate.loadSoundScript ../air/common/Sounds/Bomb.ssc
ObjectTemplate.geometry Bomb_mk83
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.timeToLive CRD_NONE/2/0/0
ObjectTemplate.damageType 1
ObjectTemplate.material 704
ObjectTemplate.material2 703
ObjectTemplate.radius 100
ObjectTemplate.ForceOnExplosion 200
ObjectTemplate.stopAtEndEffect 1
ObjectTemplate.dieAfterColl 1
ObjectTemplate.hasCollisionEffect 1
ObjectTemplate.mass 1000
ObjectTemplate.drag 0.04
ObjectTemplate.setHasPointPhysics 0
ObjectTemplate.invisible 1


Is there a way to completely remove the
"ObjectTemplate.create FireArms KamikazeBoatFireArms" complex ?

Including the other two complexes as well such as below ?

ObjectTemplate.create FireArms KamikazeBoatFireArmsInstant

ObjectTemplate.create Projectile KamikazeBoatBomb


Wouldn't it be nice if the following code would work ?

ObjectTemplate.Active FireArms KamikazeBoatFireArms
ObjectTemplate.remove FireArms KamikazeBoatFireArms


I trust that one of you "Server Sided Modders" can shed some light on this or help us toward the right direction.
:wink:

I have learned many server side modding techniques from this website / forums and have applied them to increase the fun factor on my game servers and I thank you all very much. :D

_________________
Image
Image
Do everything to the best of your ability and you will find yourself in the future doing everything better than you thought possible.
Anthony Voltano 7/7/4777
VXF VOLT


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group