[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/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 - Allowing passengers to use class weapons

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Wed May 15, 2024 11:52 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Feb 05, 2009 8:23 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
PostPosted: Thu Feb 05, 2009 10:11 pm 
Offline

Joined: Mon Aug 16, 2004 12:00 am
Posts: 2120
I think part of this is part of the hard-coded changes from BF1942 to BFV. It just can't be done in 1942, because according to the internal code: when a passenger is in a vehicle, they do not get to use their weapons. They are no longer "solider," they are "vehicle."


Top
 Profile  
 
PostPosted: Fri Feb 06, 2009 9:34 am 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
Ah, read that definition of passengers also (MDT website), but I thought maybe tehre are workarounds (as there are so many ;) )...what a pity, gotte have to live without it :( That's the first time I encounter a really hardcoded aspect I wished to change (and I'm actively clientside modding several months now...)

Thanks for your quick and helpful answer :)

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
PostPosted: Fri Feb 06, 2009 12:22 pm 
Offline

Joined: Mon Oct 09, 2006 12:51 pm
Posts: 782
You can modify it so that you can see the weapon in first person, as well as see the animations in 3rd person, but it doesn't work like your thinking. The gun is basically floating, and in 3rd person there is no gun. Just the animations.


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Feb 07, 2009 9:34 am 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
Yep, that's what I already managed to get. A fully visible one (with the code above you even see the weapon in external camera as well as all fire animations), but of course no gameplay effect is caused by this...

Though I probably encountered a glitch after some further testing, this time with the T34-85

Passenger seat on the rear, lb_Passengerontank, ub_Passengerwithweapons and all showweapons etc. active

Now when one enters the seat, it is possible to fire exactly ONE round, then the fire sound starts looping and no more rounds can be shot. But the round is no visual glitch, it really is spawned and causes damage (tested by firing on a jeep nearby), and when leaving the tank the magazine misses one round...

I strongly doubt this glitch is expandable to get it to proper function, but wanted to mention it nevertheless.

EDIT: I also have to say the mod includes EXTENSIVE modding on my half and adding contents (e.g. animations) from other mods, so I'm not sure this is easily reproductible.

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Feb 08, 2009 2:48 pm 
Offline

Joined: Thu Jun 07, 2007 10:32 am
Posts: 25
I was looking at the jetpack code last night (Proper jetpack from SW). It seems to be basically some kind of vehicle. Maybe you can look at it and see if it helps.


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Feb 08, 2009 3:52 pm 
Offline

Joined: Tue Jan 06, 2009 9:57 pm
Posts: 49
In the Galactic Conquest mod (about star wars) they got land vehicles so big that people can spawninside, walkaround and fire from openings. (The Walker, see movie: The Empire strikes back)

I think for slow moving vehicles it is possible to just have the ride along on the back (like in the back of a halftrack) and the soldiers can fire overtop.


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Feb 08, 2009 4:43 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
The jetpack is not really a vehicle, but a "ActiveKitPart" appendable to a kit... :( , and it's a VERY special ActiveKitPart too, reaching the extends of possibilities of the BF engine...I would have to make the Tank a kit class instead of a vehicle to allow free weapon use and that's pretty impossible (better said, it's possible within certain limits, but it would not be very useful due to the kit class restrictions...)

I know about the possibility to walk freely around in vehicles and have that also in use for some vehicles (e.g. Ratte Landkreuzer 8-) ), but that won't do for regular tanks as they are rather small. That would be a pretty bumpy ride on the rear, the people slowly would drift off the vehicle during manoeuvering or bumpy terrain and aiming is impossible. Nah, I'll have to stick with the PCOs there.

But thanks for the creative input :) .

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


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

All times are UTC


Who is online

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