[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/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 - Serverside/Change one kit to another or not-enable to select

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Fri Jun 28, 2024 9:39 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 35 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Sun Sep 23, 2007 9:32 pm 
Offline

Joined: Fri Sep 21, 2007 6:59 pm
Posts: 61
Location: Hungary
ok,here it is,the all of the tutorial:

How to change the Weapon Kits of Soldiers

Lets say you want to change the AT kit on Inshallah Valley with DCs non stinger AT kit.

First, lets look at the Objects.rfa file to see what this kit is called. DO NOT EDIT THE OBJECTS.RFA FILE! We just want to look at some things.

Open up OBJECTS\items\IraqKit\AntiArmor2\Objects.con. Notice that compared to OBJECTS\items\IraqKit\AntiArmor\Objects.con, we're missing the stinger, and have an expack instead. The name of this kit (up top) is "Iraq_AT2".

Now open up your prepped Inshalla Valley's rfa file (Inshallah_Valley_001.rfa). The file we need to edit is the Init.con file.

About midway through, you'll see the following lines:

game.setTeamSkin 1 IraqSoldier
game.setKit 1 0 Iraq_Sniper
game.setKit 1 1 Iraq_Assault
game.setKit 1 2 Iraq_AT
game.setKit 1 3 Iraq_HeavyAssault
game.setKit 1 4 Iraq_Support
game.setKit 1 5 Iraq_SpecOps

game.setTeamSkin 2 USSoldier
game.setKit 2 0 US_Sniper
game.setKit 2 1 US_Assault
game.setKit 2 2 US_AT
game.setKit 2 3 US_HeavyAssault
game.setKit 2 4 US_Support
game.setKit 2 5 US_SpecOps

Change the "Iraq_AT" to "Iraq_AT2". Do the same with "US_AT", making it "US_AT2" (you could verify this in the objects.rfa). ok i rewrite it at init.con.but dont know where to define US_AT2 kit things :(:( (in normal bf with sww weapons of course.)

Then you could place stinger packs all around the board as described in "Add Other Objects". FUN!!

tanfhltu@yahoo.com

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

Changing kits is pretty straight forward, but one thing you need to know about is the numbers 0-5. Each number stands for a different class, and only kits with the same class number can be put in a given position. So for example, you cannot put a sniper kit in position 1. It can only go in slot 0. The US_AA kits are the only exception (*See below). The "class# 0-5" tells you where the kit can be put.

I haven't tried it yet, but I think you can use any Iraqi kit for the US, and vice versa.

IRAQ
---------------------
Iraq_AA class# 2
SA-7
KnifeAxis
BrowningHipo

Iraq_AT class# 2
RPG7
BrowningHipo
KnifeAxis
Landmine
Stinger

Iraq_AT2 class# 2---> where to put this?
RPG7
BrowningHipo
KnifeAxis
Detonator
ExpPack
Landmine

_________________


modding BF1942 not very difficult,but i have to learn more and more...

193.138.125.6:14567

Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Sep 23, 2007 9:59 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Sep 23, 2007 10:09 pm 
Offline

Joined: Fri Sep 21, 2007 6:59 pm
Posts: 61
Location: Hungary
wow thx!

and could you know how to change the sniper class to E.G. assault2 class,like in the tutorial,cause it doesn't work for me:(

and if i make this on omaha,and i put some sniepr kit spawns(like objects),a player picks it up,he see the same,or he could fight normal with the picked up kit.

you know, iwould like to make the same thing like in FH,pick up some weapons/kits from the ground,but you can not choose it at start.

_________________


modding BF1942 not very difficult,but i have to learn more and more...

193.138.125.6:14567

Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Sep 23, 2007 10:10 pm 
Offline

Joined: Fri Sep 21, 2007 6:59 pm
Posts: 61
Location: Hungary
and where to put this code (which file and inside the file,where?)

thx!

_________________


modding BF1942 not very difficult,but i have to learn more and more...

193.138.125.6:14567

Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Sep 23, 2007 10:12 pm 
Offline

Joined: Fri Sep 21, 2007 6:59 pm
Posts: 61
Location: Hungary
and what does the number s mean in "game.setKit 1 0",so what is 1,what is 0?

and wheer could i find more of this in BF1942 structure?

_________________


modding BF1942 not very difficult,but i have to learn more and more...

193.138.125.6:14567

Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Sep 23, 2007 11:29 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Sep 24, 2007 2:37 pm 
Offline

Joined: Fri Sep 21, 2007 6:59 pm
Posts: 61
Location: Hungary
and i have to do this change with the Omaha_Beach_003.rfa,or i can i make a new file like: Omaha_Beach_009.rfa?

_________________


modding BF1942 not very difficult,but i have to learn more and more...

193.138.125.6:14567

Image


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Sep 24, 2007 3:04 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253


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

All times are UTC


Who is online

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