[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/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 - ADD RADAR TO A VEHICLE

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Sat Apr 27, 2024 2:40 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 24 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: Sun Jan 08, 2006 5:42 pm 
Offline

Joined: Fri Jan 06, 2006 12:00 am
Posts: 9


Top
 Profile Send private message E-mail  
 
 Post subject: yea
PostPosted: Wed Mar 29, 2006 2:20 am 
Offline

Joined: Tue Feb 07, 2006 12:00 am
Posts: 60


Top
 Profile Send private message E-mail  
 
 Post subject: also
PostPosted: Wed Mar 29, 2006 2:30 am 
Offline

Joined: Tue Feb 07, 2006 12:00 am
Posts: 60


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 9:57 am 
Offline

Joined: Tue Mar 21, 2006 12:00 am
Posts: 46


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 10:54 am 
Offline

Joined: Tue Mar 21, 2006 12:00 am
Posts: 46


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 2:17 pm 
Offline

Joined: Tue Feb 07, 2006 12:00 am
Posts: 60


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 6:00 pm 
Offline

Joined: Tue Mar 21, 2006 12:00 am
Posts: 46
i just have vanilla bf therefore i can't tell ya ;)
but i can tell you what to do if you want to add radar to a vehicle with more than one position...
step by step
1. decide to what vehicle you want to add the radar and find it's objectname (usually that's easy... a willy is also the PCO willy, a bf109 is a bf109, a sherman a sherman etc...)
if you're not sure what the vehicle you want to add the radar too you might use the rfaexplorer to go through the objects.rfa (especially the Vehicles directory) to find it... the name we need is set here:
ObjectTemplate.create PlayerControlObject NameGoesHere
in the willy example we go browse bf1942's objects.rfa -> Vehicles -> Land -> Willy -> Objects.con
rem *** Willy ***
ObjectTemplate.create PlayerControlObject Willy

we now know for sure the jeep is called a "Willy"
as an alternative to using the rfa explorer to find out objectnames you could use battlecraft, click add template and browse through the objects and look at the pictures... that helps if you have no idea about the actual name ;)
2. adding a sonar to our vehicle
that's a really easy deal...
go to your objectspawntemplates.con and add those lines:
ObjectTemplate.Active NameGoesHere
ObjectTemplate.AddTemplate DestroyerSonar
every vehicle only needs one of the Sonartemplates, no matter how many positions it has
3. making the radarthingee to show up on the driver's minimap
again that's reallly easy... just add this line below the .AddTemplate DestroyerSonar:
ObjectTemplate.sonarPos 1
notice what .sonarPos is actually doing:
.sonarPos is used as a property of a position in a vehicle
we're adding this to the code of the PlayerControlObject Willy what means this refers to the driver's position, not to ANY other position in the vehicle
if we want to add radar to another position (usually passenger positions) we will have to find the NAME of the passenger's playercontrolobject that enables him to sit in the seat together with the driver...
4. finding the objectname of a passenger position
first: vehiclepositions are always (at least as far as i know) defined as playercontrolobjects
that makes the search quite easy... you can forget about all the parts of code in the Willy's Objects.con that don't begin with ObjectTemplate.create PlayerControlObject
so go through the .con file again and pick out the lines matching your new knowledge:
ObjectTemplate.create PlayerControlObject Willy
ObjectTemplate.create PlayerControlObject WillyPassengerPCO

we already know that "Willy" is the jeep itself so this can't be a passenger position
so "WillyPassengerPCO" is the name we're looking for
5. making the radarthingee to show up on the passenger's minimap
that's easy again, add to your ObjectSpawnTemplate.con
ObjectTemplate.Active WillyPassengerPCO
ObjectTemplate.sonarPos 1

this adds the sonarPos property to the passenger position
6. enjoy your new lovely green radar
;)

i hope this helps to find out the names you need to add the radar to the humvee


Top
 Profile Send private message E-mail  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 10:15 am 
Offline

Joined: Mon Feb 20, 2006 12:00 am
Posts: 155
ive already got this code from here before......it has already been done...still good work guys :D


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 194 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:
Powered by phpBB® Forum Software © phpBB Group