[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
https://battlefieldmodding.com/ssm/phpBB3/

Allowing passengers to use class weapons
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=4672
Page 1 of 2

Author:  Senshi [ Thu Feb 05, 2009 8:23 pm ]
Post subject:  Allowing passengers to use class weapons


Author:  Why Two Kay [ Thu Feb 05, 2009 10:11 pm ]
Post subject:  Re: Allowing passengers to use class weapons

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."

Author:  Senshi [ Fri Feb 06, 2009 9:34 am ]
Post subject:  Re: Allowing passengers to use class weapons

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 :)

Author:  Archimonde0_0 [ Fri Feb 06, 2009 12:22 pm ]
Post subject:  Re: Allowing passengers to use class weapons

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.

Author:  Senshi [ Sat Feb 07, 2009 9:34 am ]
Post subject:  Re: Allowing passengers to use class weapons

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.

Author:  Zoolander [ Sun Feb 08, 2009 2:48 pm ]
Post subject:  Re: Allowing passengers to use class weapons

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.

Author:  Syphax [ Sun Feb 08, 2009 3:52 pm ]
Post subject:  Re: Allowing passengers to use class weapons

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.

Author:  Senshi [ Sun Feb 08, 2009 4:43 pm ]
Post subject:  Re: Allowing passengers to use class weapons

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 :) .

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