Page 1 of 1

Halftrack gun

Posted: Sun Jun 22, 2003 11:41 pm
by Alcoholic
does anybody know a good way to make a player in SP use a halftrack mg? i tried attachturretslot 0, but it said it was locked. so i unlocked it and tried it again. i could use the gun, but couldnt really see it, and my screen bobbed up and down, as if you lean left, over and over... does anybody know a good way to do it?

Posted: Mon Jun 23, 2003 7:20 am
by jv_map
Hmm I doubt if you can make it much better than that. If the original game developers didn't need such a feature they more than less likely didn't add support for it. :(

Posted: Mon Jun 23, 2003 7:50 am
by mohaa_rox
try to attach the player to the passengerslot1, where the machine gunner's supposed to be.

Posted: Mon Jun 23, 2003 12:15 pm
by Desert Eagle
You could try hiding the player while maning the mg.

Posted: Mon Jun 23, 2003 12:43 pm
by mohaa_rox
i don't think u can hide a player :?

Posted: Mon Jun 23, 2003 1:29 pm
by bdbodger
look at the global/vehicle_thinkers.scr under jeep controler the SDK uses a halftrack and this thread in it's tutorial about rideing a vehicle . Here is part of it .
local.vturretent = self queryturretslotentity 0
local.vturretent unlock
self attachturretslot 0 $player // Attach the player to the jeep
$player perferredweapon ".30cal Machine Gun"
local.vturretent lock

Posted: Mon Jun 23, 2003 5:29 pm
by Alcoholic
if i put the player in the passenger slot, he has no gun. is there anyway to give the player an mg42?

Posted: Mon Jun 23, 2003 7:13 pm
by Desert Eagle
Sure you can hide players, that is what I did in my TOW map, during the victory movie, frozen em hid em, and made them not solid, as not to interfere with movie animations.


part of my script used:

//-------------------------------------------------------
win_game_allies:
//-------------------------------------------------------
drawhud 0 // clear the screen

//stop the players
$player nodamage
$player hide
$player notsolid
freezeplayer

If you just use $player hide, players can still run around on map. Not sure if it would work in SP though.

Image

Posted: Mon Jun 23, 2003 7:59 pm
by Alcoholic
forget hiding the player, can you give him an mg42?

Posted: Mon Jun 23, 2003 8:12 pm
by Alcoholic
If i attach player to teh passenger slot, everything is fine except he has no gun. So im gonna stick wiht teh passenger slot and hope i can give him a gun.

Posted: Mon Jun 23, 2003 8:16 pm
by Alcoholic
OK, Ive got an idea for this to work... First of all i need some info...

How do you properly use the doUse function? as in, how do you force the player to use something? think of it as some invisible force automatically pushing the use key on ur keyboard for you. i want the player to forcibly 'use' an object.

Posted: Mon Jun 23, 2003 9:34 pm
by nuggets
depends on what they're using and disabling the ai

Posted: Mon Jun 23, 2003 10:30 pm
by Alcoholic
i want the player to use an mg42.

Posted: Tue Jun 24, 2003 7:23 am
by mohaa_rox
i think we need to make a new model of the halftrack, with an eyebone or something.

too bad we can't import SH models, or it would be much easier to see. :cry: