[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

Battlefield Modding Tutorials
It is currently Sat Apr 27, 2024 8:38 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 32 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject:
PostPosted: Sat Jul 08, 2006 4:42 pm 
Offline

Joined: Sun Jun 18, 2006 3:07 pm
Posts: 319
Location: Ontario, Canada


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Sat Jul 08, 2006 5:29 pm 
Offline

Joined: Tue Nov 02, 2004 12:00 am
Posts: 773
Location: Mars

_________________
DCon Dev
http://desert-conflict.org



I refuse to buy more garbage from EA. 2142 has crossed the line. If you are with me, copy this into your sig too.


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Thu Dec 14, 2006 4:42 am 
Offline
User avatar

Joined: Wed Nov 24, 2004 12:00 am
Posts: 257
Location: New York City
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:

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

_________________
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  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 3:44 am 
Offline
User avatar

Joined: Wed Nov 24, 2004 12:00 am
Posts: 257
Location: New York City
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. :)

_________________
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  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 3:48 am 
Offline

Joined: Mon Aug 16, 2004 12:00 am
Posts: 2120
I believe it is "zero"


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 3:04 pm 
Offline

Joined: Mon Nov 15, 2004 12:00 am
Posts: 696
Location: Germany, US Depot

_________________

--= Home of the Airwolf =--


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Sat Dec 23, 2006 2:41 am 
Offline
User avatar

Joined: Wed Nov 24, 2004 12:00 am
Posts: 257
Location: New York City
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 :)

_________________
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  
 
 Post subject:
PostPosted: Mon Apr 30, 2007 6:07 pm 
Offline
User avatar

Joined: Wed Nov 24, 2004 12:00 am
Posts: 257
Location: New York City

_________________
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.  [ 32 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC


Who is online

Users browsing this forum: No registered users and 197 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