Garry's Mod

Garry's Mod

99 ratings
Drivable prop_vehicle_apc
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
76.591 KB
27 Jul, 2021 @ 1:37am
15 Nov, 2023 @ 1:42am
12 Change Notes ( view )

Subscribe to download
Drivable prop_vehicle_apc

Description
Inferior version of a drivable APC, superior version available at https://steamproxy.net/sharedfiles/filedetails/?id=118997241

This is a fix for prop_vehicle_apc entity that allows players to enter the vehicle properly. Normally, players would never be able to enter this vehicle and get stuck inside without being able to drive it. This simply uses ply:EnterVehicle function to make player drive the vehicle.

Besides, you can press R button to randomly pick a target for your rockets to fly towards. You can use SHIFT button to pick a target nearest to your APC. Those will target only those NPCs that are hostile towards you, or players that aren't in the same team with you.

This also puts a prop_vehicle_apc into your "Vehicles" spawn tab so you can easily spawn one.

Additional console variables:

sk_apc_machinegun_damage
sk_apc_ply_machinegun_clipsize
sk_apc_ply_machinegun_reloaddelay
sk_apc_ply_rocket_clipsize

No further implementations will be made to this addon, such as a VGUI, an indicator about ammo status or APC health. This only allows players to drive the vehicle.

Please report bugs below.
Popular Discussions View All (3)
15
22 Oct, 2023 @ 6:22pm
A Call for a supplementary addon.
Gordon? GORDAN!
1
16 Apr @ 10:27pm
camera bug
Windows XP (Miney)
2
14 Oct, 2023 @ 7:44pm
Please help
Var Stins
79 Comments
ellen61788 16 Apr @ 10:26pm 
camera
fix pls
:steamthumbsdown:
nicowav 16 Dec, 2023 @ 1:43am 
can anyone help me? ive been trying to find an addon of a combine apc. it could shoot repetitevely, be first-person, and the mounted turret would be very accurate (it could shoot rockets). i will be very thankful.
kwaHliveD  [author] 15 Dec, 2023 @ 1:18am 
5-) this also exists, but it isn't easy to access it. create an npc_apcdriver while you are inside the apc and assign npc_apcdriver's vehicle as your apc. following changes will occur:

5.1-) if npc_apcdriver has an enemy, your crosshair will not aim and it will assist you with aiming and shoot the target for you. it will use only one weapon at a time but you can use the other weapon to assist with the apc.

5.2-) if the npc_apcdriver has a valid route, it'll track the route even when you're still the driver. while npc_apcdriver is driving, you can still command your apc to either move forward & backward, steer or break, that will alter npc_apcdriver's behaviors. when the npc_apcdriver doesn't have any route, you are fully in command of the apc.
kwaHliveD  [author] 15 Dec, 2023 @ 1:18am 
1-) hud elements surpass my aims within this mod; to make undrivable prop_vehicle_apc drivable and fully functional.

2-) this overrides apc default functionality and can't be an aim within this mod.

3-) i intentionally disabled boosting feature because default turbo settings are incorrectly set in apc_npc.txt, temporarily breaks apc physics and makes the apc loose gravity and occasionally flip upside-down instead.

4-) this functionality actually exists. bind +attack3 to any button and when you press it, the apc will select a target closest to your crosshair.
Gordon? GORDAN! 14 Dec, 2023 @ 2:48pm 
For additions in the future (not now)

I would like an ammo display if possible to come on, along with a variable that makes the APC Gun act like the Airboat's in terms of ammo regeneration.

An option for the rockets to shoot straight out the barrel instead of fly in a weird angle from the APC's side before shooting forward.

And a less clumsy way for the auto-target to work that doesn't disable the vehicle's boost function.

I would have either the reload key or a combination between the RMB and reload key on a target enable the APC's missiles to focus on an enemy selected with the crosshairs.

I would add an option in the convars for the ability to have the Machine Gun also target a selected enemy so that the player can drive and shoot without having to worry about aiming much.
Gordon? GORDAN! 15 Nov, 2023 @ 12:29pm 
I searched for a command like that yesterday and I realized that the closest thing mentioned was a rocket CLIP, not a reload delay. That's what tipped to Me some wires weren't done right.
kwaHliveD  [author] 15 Nov, 2023 @ 1:44am 
apc trying to retrieve a console variable which i had commented out before releasing. fixed.
Gordon? GORDAN! 14 Nov, 2023 @ 8:58am 
[Drivable prop_vehicle_apc] lua/autorun/prop_vehicle_apc_fixer.lua:206: attempt to index global 'sk_apc_ply_rocket_reloaddelay' (a nil value)
1. APC_WeaponModifiers - lua/autorun/prop_vehicle_apc_fixer.lua:206
2. APC_WeaponThink - lua/autorun/prop_vehicle_apc_fixer.lua:274
3. v - lua/autorun/prop_vehicle_apc_fixer.lua:428

This got spammed whenever I entered the APC.
TotalChaos 11 Nov, 2023 @ 7:25am 
Ah, ok, that makes sense.
I hope that all goes well. And, if you can, please try to make the headlight functionality as vanilla/Valve as possible, using the game's code. If that doesn't work and you have to code custom headlights in, can you please try to make it as accurate to Valve's headlights as possible?
If you don't do it, that's fine. There's always the lamp and weld tools.
kwaHliveD  [author] 11 Nov, 2023 @ 7:15am 
to access internal functions, we generally request them to be bound from c++ to Lua API, from Gmod developers. we mostly do that in https://github.com/Facepunch/garrysmod-requests/issues . as far as I know, there isn't any bound functions related to headlights of the jeep. the same functionality can be replicated, though. after my personal work is done, I'll work on the fire rate, reload rate and ammo amount of the APC, then that headlight.