Garry's Mod

Garry's Mod

[simfphys] Halo CE Vehicles
 This topic has been pinned, so it's probably important
topdog864 6 Aug, 2020 @ 2:05am
What are the spawn names to summon the vehicles through lua?
First of all thanks for this awesome addon! Easily the best Halo addon in years!
I have a ttt server that when ttt_rats_nest plays it plays a script that summons simfphys vehicles on the map at the start of each round, I am curious if you know the spawn names to summon the vehicles through lua from a command like this:

simfphys.SpawnVehicleSimple( spawnname, pos, ang )

Thanks again for the awesome addon! (Cursed Halo was a welcome surprise :D)

Edit: Grammar
Last edited by topdog864; 6 Aug, 2020 @ 2:06am
< >
Showing 1-7 of 7 comments
Snowy Snowtime  [developer] 6 Aug, 2020 @ 8:34am 
CE Vehicles
Civilian Hog - simfphys_hcewarthogcivilsnow
Warthog - simfphys_hcewarthogsnow
CEified Gauss Hog - simfphys_hcewarthoggausssnow
Scorpion - simfphys_hcescorpionsnow
These vehicles actually have skins. Warthogs have ~8 skins whereas the Scorpion has 5. Just in case you have some sort of code that also can randomize the skins.

Halo 2
Civilian Hog - simfphys_h2warthogcivilsnow
Warthog - simfphys_h2warthogsnow
Gauss Hog - simfphys_h2warthoggausssnow

Halo 3
Civilian Hog - simfphys_h3warthogcivilsnow
Warthog - simfphys_h3warthogsnow
Gauss Hog - simfphys_h3warthoggausssnow
Troop Hog - simfphys_h3warthogtroopsnow
Mongoose - simfphys_h3mongoosesnow
Scorpion - simfphys_h3scorpionsnow
Each of these vehicles have another skin for their snow variant from Avalanche and Snowbound.

Halo Reach
Civilian Hog - simfphys_hrwarthogcivilsnow
Warthog - simfphys_hrwarthogsnow
Gauss Hog - simfphys_hrwarthoggausssnow
Troop Hog - simfphys_hrwarthogtroopsnow
Mongoose - simfphys_hrmongoosesnow
Snowy Snowtime  [developer] 6 Aug, 2020 @ 8:35am 
If you also want the cursed vehicles let me know.
I suggest using my ArcCW weaponry alongside the vehicles, as they were made to be side-by-side.
And if possible, could I also get the IP for the server? That genuinely sounds like a fun time.
Last edited by Snowy Snowtime; 6 Aug, 2020 @ 8:41am
topdog864 6 Aug, 2020 @ 2:10pm 
Originally posted by Snowy Snowtime:
If you also want the cursed vehicles let me know.
I suggest using my ArcCW weaponry alongside the vehicles, as they were made to be side-by-side.
And if possible, could I also get the IP for the server? That genuinely sounds like a fun time.

Thanks! Now the battle will be legendary! I do have a idea for the cursed vehicles if if I could get those please. Gonna be a raceway map and I’m going to have a table full of possible vehicles that could spawn so the chance of someone getting THANOS CAR! would be quite epic xD

Sure! I’ll get you the ip sometime! It’s always been a server I’ve had amongst irl friends but feel free to join! And bring friends of your own if you wish!

I’ve thought about putting the server out there, not to brag but it’s a pretty well put together server. It is however self hosted on my pc so I can’t keep it up 24/7.
topdog864 6 Aug, 2020 @ 4:58pm 
Alrighty thanks again for everything! This is such a awesome addon I cannot stress that enough!

If anyone is interested in the code I use to spawn the vehicles I will have it right here and will also have a sandbox version aswell!

if game.GetMap() == "ttt_rats_nest" then HaloMap = true else HaloMap = false end hook.Add("TTTPrepareRound", "PrepPhaseVehicleAdd", function() if HaloMap == true then simfphys.SpawnVehicleSimple( "simfphys_h3scorpionsnow", Vector(2709,150,-750), Angle(0,-90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3scorpionsnow", Vector(-2709,150,-750), Angle(0,-90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3warthogsnow", Vector(2600,470,-750), Angle(0,90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3warthogsnow", Vector(-2600,470,-750), Angle(0,90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3warthoggausssnow", Vector(2860,470,-750), Angle(0,90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3warthoggausssnow", Vector(-2860,470,-750), Angle(0,90,0) ) end end )

You do not need code to cleanup the vehicles as ttt will do that automatically.

It has been reported that sometimes the simfphys vehicles do not work in other gamemodes ttt included, however there is a solution if you add another lua file with the following:

hook.Add( "PlayerButtonUp", "simfphys_fix", function( ply, button, isButton ) numpad.Deactivate( ply, button, isButton ) end) hook.Add( "PlayerButtonDown", "simfphys_fix", function(ply, button, isButton ) numpad.Activate( ply, button, isButton ) end)

Make sure it run it in server autorun or have "if SERVER then" at the top of the code.

And for the sandbox version! This one does not require the lua file above as simfphys does not need any other extra configuration to work with sandbox.

if game.GetMap() == "ttt_rats_nest" then HaloMap = true else HaloMap = false end if HaloMap == true then simfphys.SpawnVehicleSimple( "simfphys_h3scorpionsnow", Vector(2709,150,-750), Angle(0,-90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3scorpionsnow", Vector(-2709,150,-750), Angle(0,-90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3warthogsnow", Vector(2600,470,-750), Angle(0,90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3warthogsnow", Vector(-2600,470,-750), Angle(0,90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3warthoggausssnow", Vector(2860,470,-750), Angle(0,90,0) ) simfphys.SpawnVehicleSimple( "simfphys_h3warthoggausssnow", Vector(-2860,470,-750), Angle(0,90,0) ) end

To get the vector coordinates do "cl_showpos 1" and it will give you the coords in the top right!

Stay awesome gmod community!

EDIT: I am looking into trying to get the skins to work as that would be epic, however I am not super duper knowledgeable on Glua :/
Last edited by topdog864; 6 Aug, 2020 @ 11:20pm
Snowy Snowtime  [developer] 6 Aug, 2020 @ 6:58pm 
the skins are relatively simple actually, but it may need to be done through my own end for it to function. I'll see what i can do.

Cursed Vehicles
Earrape Hog - simfphys_h2desertearrpsnow
Longhog - simfphys_hcursedlongsnow
Shorthog - simfphys_hcursedwarthogshort
Thanos Car - simfphys_h2desertthanossnow
Vaporwave Hog - simfphys_h2desertvaporsnow
Warthog Sedan - simfphys_hcursedsedansnow
Wartkart - simfphys_hcursedpumasnow
Wartwart - simfphys_hcursedwortsnow
Widehog - simfphys_hcursedwidesnow
Megahog has been omitted from this category as it's too big for the map.
topdog864 6 Aug, 2020 @ 11:51pm 
Originally posted by Snowy Snowtime:
the skins are relatively simple actually, but it may need to be done through my own end for it to function. I'll see what i can do.

Cursed Vehicles
Earrape Hog - simfphys_h2desertearrpsnow
Longhog - simfphys_hcursedlongsnow
Shorthog - simfphys_hcursedwarthogshort
Thanos Car - simfphys_h2desertthanossnow
Vaporwave Hog - simfphys_h2desertvaporsnow
Warthog Sedan - simfphys_hcursedsedansnow
Wartkart - simfphys_hcursedpumasnow
Wartwart - simfphys_hcursedwortsnow
Widehog - simfphys_hcursedwidesnow
Megahog has been omitted from this category as it's too big for the map.

Thanks again! The race will have new competition! I'll take a look into the skins more tomorrow aswell.

Heres a shot of the vehicles in the map!
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2189855508

I have noticed for the warthogs that the camera in the drivers seat is set back alot compared to the passenger seat but its no biggie. I found this to be a ttt only thing. I used the script to spawn them in the server while on sandbox and it was just fine so its not your addon just ttt being weird.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2189857275

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2189857180

I cannot thank you enough for all your help, for the past few days I was stumped trying to get halo vehicles to save on the map but it was unsuccessful. I usually use PermaProps for alot of props on my maps such as the SCPs for the gm_site_19 map but the simfphys base isn't compatiable with PermaProps. But I wanted the absolute best halo vehicles to use so thanks again.
Last edited by topdog864; 6 Aug, 2020 @ 11:56pm
Snowy Snowtime  [developer] 7 Aug, 2020 @ 7:57am 
the camera is actually like that. this is due to the fact that the driver has different animations to the passenger, as i based their seating position to their animation.
< >
Showing 1-7 of 7 comments
Per page: 1530 50