[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS :: View topic - Disabling a weapon Completely
Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

Disabling a weapon Completely
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=4&t=1425
Page 4 of 4

Author:  Bullet-ProofMonk [ Sat Jul 08, 2006 4:42 pm ]
Post subject: 


Author:  Superfuzz [ Sat Jul 08, 2006 5:29 pm ]
Post subject: 


Author:  VOLTANO [ Thu Dec 14, 2006 4:42 am ]
Post subject: 

Nice code work there. 8-)

I noticed the codes work for vanilla BF1942 well.

I would like to apply some of these codes for Desert Combat.

Would you please let me know what code to use for DC ?

For example, I would like to remove the smoke grenades, C-4 and detonator from the following weapon kits.

Iraq_SpecOps2
VSS
PSS
KnifeAxis
Binoculars
Detonator - remove
ExpPack - remove
SmokeGrenade - remove


US_SpecOps
Car-15
MK23
KnifeAllies
Detonator - remove
ExpPack - remove
Binoculars
SmokeGrenade - remove


US_MP5
MP5
MK23
KnifeAllies
Detonator - remove
ExpPack - remove
Binoculars

Thank you for your good work on server sided modifications and any help would be appreciated. :wink:

-------------------------------

Author:  VOLTANO [ Fri Dec 15, 2006 3:44 am ]
Post subject: 

Here is the .con file for the US_SpecOps.

How are the addtemplates counted ?

Is the first one counted as "zero" ?

ObjectTemplate.addTemplate Car-15 ------------ 0
ObjectTemplate.addTemplate MK23 ------------- 1
ObjectTemplate.addTemplate KnifeAllies ------- 2
ObjectTemplate.addTemplate Detonator -------- 3
ObjectTemplate.addTemplate ExpPack ---------- 4
ObjectTemplate.addTemplate Binoculars -------- 5
ObjectTemplate.addTemplate SmokeGrenade -- 6


Or is the first addtemplate counted as a "one" ?

ObjectTemplate.addTemplate Car-15 ------------- 1
ObjectTemplate.addTemplate MK23 -------------- 2
ObjectTemplate.addTemplate KnifeAllies -------- 3
ObjectTemplate.addTemplate Detonator --------- 4
ObjectTemplate.addTemplate ExpPack ----------- 5
ObjectTemplate.addTemplate Binoculars --------- 6
ObjectTemplate.addTemplate SmokeGrenade --- 7


:?: So to remove the Detonator, ExPack and SmokeGrenade, would the code look something like this ? :?:

ObjectTemplate.Active US_SpecOps
ObjectTemplate.removeTemplate 5
ObjectTemplate.removeTemplate 4
ObjectTemplate.removeTemplate 5


Thank you for clarifying this for us. :)

Author:  Why Two Kay [ Fri Dec 15, 2006 3:48 am ]
Post subject: 

I believe it is "zero"

Author:  Zaitsef [ Fri Dec 15, 2006 3:04 pm ]
Post subject: 


Author:  VOLTANO [ Sat Dec 23, 2006 2:41 am ]
Post subject: 

Thank you gentlemen for your help. 8-)

:?: I have another question regarding removing weapons from a vehicle. :?

:?: How can I remove the "Suicide Boat's" kamikaze boat bombs ? :?:

I tried this following code in the ObjectSpawnTemplates.con file.

ObjectTemplate.active SuicideBoat
ObjectTemplate.magType 1

ObjectTemplate.active KamikazeBoatFireArmsInstant
ObjectTemplate.removeTemplate KamikazeBoatFireArmsInstant

ObjectTemplate.active KamikazeBoatFireArms
ObjectTemplate.removeTemplate KamikazeBoatFireArms


The above code did not work. :(

I alsso tried adding the code magtype 1
And also this one ;
ObjectTemplate.setInputFire c_PINone

It still didn't work.

This "Suicide Boat" is in the DC_Extended v.9 map "Midway_Brit".

has anyone successfuly removed these weapons from this vehicle ?

Below is the code from the "objects\Vehicles\Sea\SuicideBoat\Objects.con"

ObjectTemplate.create PlayerControlObject SpeedBoat
ObjectTemplate.setNetworkableInfo KamikazeBoatBodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.drag 0.488
ObjectTemplate.mass 30000
objectTemplate.cullRadiusScale 5
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.hitpoints 10
ObjectTemplate.maxhitpoints 10
ObjectTemplate.material 45
ObjectTemplate.criticalDamage 2
ObjectTemplate.hpLostWhileCriticalDamage 1.5
ObjectTemplate.explosionForceMod 5
ObjectTemplate.explosionRadius 5
ObjectTemplate.explosionDamage 2
ObjectTemplate.explosionForce 2
ObjectTemplate.hpLostWhileUpSideDown 2
ObjectTemplate.addArmorEffect 5 e_BuildingFireBig 0/0/-0
ObjectTemplate.addArmorEffect 2 e_BuildingFireBig 0/0/-2
ObjectTemplate.addArmorEffect 0 e_ScrapKamikazeBoat 0/0/0
ObjectTemplate.timetoliveafterdeath 0
ObjectTemplate.aiTemplate KamikazeBoatAI

ObjectTemplate.create PlayerControlObject SuicideBoat
ObjectTemplate.setNetworkableInfo KamikazeBoatBodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.drag 0.488
ObjectTemplate.mass 30000
objectTemplate.cullRadiusScale 5
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.hitpoints 10
ObjectTemplate.maxhitpoints 10
ObjectTemplate.material 45
ObjectTemplate.criticalDamage 2
ObjectTemplate.hpLostWhileCriticalDamage 1.5
ObjectTemplate.explosionForceMod 200
ObjectTemplate.explosionRadius 100
ObjectTemplate.explosionDamage 500
ObjectTemplate.explosionForce 200
ObjectTemplate.hpLostWhileUpSideDown 2
ObjectTemplate.addArmorEffect 5 e_BuildingFireBig 0/0/-0
ObjectTemplate.addArmorEffect 2 e_BuildingFireBig 0/0/-2
ObjectTemplate.addArmorEffect 0 e_ExplGas_tank 0/0/0
ObjectTemplate.addArmorEffect 0 e_ExplGas_tank 0/0/3
ObjectTemplate.addArmorEffect 0 e_ExplGas_tank 0/0/-3
ObjectTemplate.addArmorEffect 0 e_ScrapKamikazeBoat 0/0/0
ObjectTemplate.timetoliveafterdeath 0
ObjectTemplate.aiTemplate KamikazeBoatAI

ObjectTemplate.addTemplate KamikazeBoatFireArmsInstant
ObjectTemplate.addTemplate KamikazeBoatFireArms




Below is the code from "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





any help would be appreciated.

Thank you :)

Author:  VOLTANO [ Mon Apr 30, 2007 6:07 pm ]
Post subject: 


Page 4 of 4 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/