Page 1 of 1
[Help!] with HMMWV
Posted: 2008-08-24 20:27
by 3===SPECTER===3
Ok for a personal SP mod i have USI's open Humvee and i want to make it so that passengers can use their weapons while sitting in the truck. Ive looked through the .teaks of the M35 and Merlin but i cant find what i need to do to achieve this. Any help is appreciated.
Re: Need Help with HMMWV
Posted: 2008-08-24 20:48
by EOD_Security-2252
I'm pretty sure the animation file determines if the player can use their weapon or not. For example, pilot animation cannot and just makes it look like players are sitting nice in their seats.
Re: Need Help with HMMWV
Posted: 2008-08-24 20:52
by 3===SPECTER===3
So what animation would i use for use of a weapon?
Re: Need Help with HMMWV
Posted: 2008-08-24 20:57
by EOD_Security-2252
Code: Select all
ObjectTemplate.seatAnimationSystem Objects/Vehicles/Common/Animations/3p_codriver_A_animSys.inc
But for future references, think about a seat that already exists (say the SAW gunner in the front of the FAAV), and you want your front seat guy to use a SAW. Then, go to the FAAV's tweak file, find the part about codriver or passenger#whatever and use that animation file.
Re: Need Help with HMMWV
Posted: 2008-08-24 21:08
by 3===SPECTER===3
No that doesn't work. I took the animations from the M35's passengers and put it on my Humvee but i still can't use my M16.
Re: Need Help with HMMWV
Posted: 2008-08-24 21:58
by EOD_Security-2252
Hmm, I'll look harder.
Re: Need Help with HMMWV
Posted: 2008-08-24 23:36
by 3===SPECTER===3
Thanks for the help so far EOD
Re: Need Help with HMMWV
Posted: 2008-08-25 00:08
by gazzthompson
Re: Need Help with HMMWV
Posted: 2008-08-25 00:24
by wolfi
Does your seat have a camera attached to it? If you attach a camera, you can't use an infantry weapon. If you do not attach a cam to the seat, the soldier will be kind of "on foot" and can use infantry stuff. #rem out the line that adds the camera template to your seat and see if that works.
Edit: Wait, I just saw youre talking about the USI humvee, means I should know what to do. As I didn't play with those things in a while now, I can't really remember if our humvee has a camera attached to this position so you can only try it by youself.
Edit 2: #rem out these lines (line number) and you should be fine:
Code: Select all
(490) ObjectTemplate.addTemplate usjep_hmmwvopen_codriver_Camera
(491) ObjectTemplate.setPosition -0.0505/1.3345/-0.08
(611) ObjectTemplate.addTemplate usjep_hmmwvopen_rightpass_Camera
(612) ObjectTemplate.setPosition 0/1.32508/0
(732) ObjectTemplate.addTemplate usjep_hmmwvopen_leftpass_Camera
(733) ObjectTemplate.setPosition -0.005/1.24402/0
Re: Need Help with HMMWV
Posted: 2008-08-25 00:30
by EOD_Security-2252
Ok, I might have got it now.
Code: Select all
ObjectTemplate.setSoldierExitLocation 1/1/1 0/0/0
ObjectTemplate.altSoldierExitPosition 1.5/1/-2
ObjectTemplate.dontClearTeamOnExit 1
ObjectTemplate.seatInformation xpak_civ1_PlayerControlObject_FrontPassenger -0.187014/0.414582/-0.0122744 0/0/0
ObjectTemplate.seatAnimationSystem Objects/Vehicles/xpak_vehicles/xpak_civ1/xpak_civ1_passAnimationSystem.inc
ObjectTemplate.seatLeftRotationLimit -3600
ObjectTemplate.seatRightRotationLimit 3600
ObjectTemplate.toggleWeapon 1
ObjectTemplate.autouseability 0
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.altSoldierExitPosition 1.5/1/-2
ObjectTemplate.isOpenVehicle 1
See where it says toggle weapon. That code comes from the civilian car's front passenger. So, try inserting that toggleweapon line of code into your vehicle in the correct spot; however, you'll be wanting toggleWeapon to be set to 0 instead of 1.
Re: Need Help with HMMWV
Posted: 2008-08-25 01:52
by 3===SPECTER===3
Ok thanks guys ill give them both a try right away.
Edit: Yes gazzthompson like generation kill lol but i didnt do it based off that i tried putting a 50 on it and then i just said screw it they can use their own stuff.
Edit2: ok I used wolfi's method and it worked. now i need to make it so the player can turn a little more each way so hes more effective while shooting. anyway to do this?
Re: Need Help with HMMWV
Posted: 2008-08-25 02:54
by wolfi
Add these lines right below the animation system line (for each of the three seats of course):
Code: Select all
ObjectTemplate.seatLeftRotationLimit -15
ObjectTemplate.seatRightRotationLimit 15
You can play with the values. That should do the trick.
Re: Need Help with HMMWV
Posted: 2008-08-26 15:08
by 3===SPECTER===3
OK thanks wolfi i finally got it to work. U suld see how good the AI is at picking of insurgents on the move.

Re: Need Help with HMMWV
Posted: 2008-08-26 18:48
by arjan
pic's ?

lil movie

?