Garry's Mod

Garry's Mod

TARDIS (Legacy)
DangerCal Mar 9, 2016 @ 9:27am
Tardis Interior spawning through the skybox of some complicated maps.[SOLVED]
When i spawn the Tardis on maps with complicated and alternative layouts such as Evocity and lots of other roleplaying maps the interior spawns either inside world objects or under/above the skybox. This makes the interior black and players are unable to walk around the interior. I'm using this mod on my new roleplaying server and would really like to know if theres any way of manually moving the interior either in game or using coordinates in the code. Thanks for reading and would really like some help on solving this thanks!:)
Last edited by DangerCal; Jun 20, 2016 @ 5:40pm
< >
Showing 1-5 of 5 comments
Plague Dude Mar 9, 2016 @ 4:45pm 
It's meant for bigger maps, but there might be a way to alter it.
Divided  [developer] Mar 16, 2016 @ 2:15pm 
The Rewrite has better handling for this. Does that work on the map you're using?
DangerCal Apr 1, 2016 @ 9:34am 
Yeah the rewrite works! but i prefer the old one at the moment as the new one lacks some important features:)
Joe Jun 18, 2016 @ 4:25pm 
Originally posted by DangerCal:
Yeah the rewrite works! but i prefer the old one at the moment as the new one lacks some important features:)


I have the same problem. I was thinking about a "compantibility mode" with will determine the max ceiling above the tardis and will spawn the interior there.

I will need the TARDIS on rp_bangclaw (if this helps).

Last edited by Joe; Jun 18, 2016 @ 4:58pm
Joe Jun 18, 2016 @ 4:51pm 
I FIXED IT!

In Q>Options>Tardis> Disable/Enable Double Spawn Trace!

i found a little liece of code in the tardis with kinda opened my eyes

Please Title this topic as [SOLVED], DrMatt :)

Originally posted by Dr. Mate:
// this is a bit hacky but from testing it seems to work well
local trdata={}
trdata.start=self:GetPos()+Vector(0,0,99999999)
trdata.endpos=self:GetPos()
trdata.filter={self}
local trace=util.TraceLine(trdata)
//another trace is run here incase the mapper has placed the 3d skybox above the map
if tobool(GetConVarNumber("tardis_doubletrace"))==true then
local trdata={}
trdata.start=trace.HitPos+Vector(0,0,-6000)
trdata.endpos=trace.HitPos
trdata.filter={self}
trace=util.TraceLine(trdata)
//this trace can sometimes fail if the map has a low skybox, hence why its an admin option
end
local offset=0
offset=GetConVarNumber("tardis_spawnoffset")
self.interior=ents.Create("sent_tardis_interior")
self.interior:SetPos(trace.HitPos+Vector(0,0,-600+offset))
self.interior.tardis=self
self.interior.owner=self.owner
self.interior:Spawn()
self.interior:Activate()
Last edited by Joe; Jun 18, 2016 @ 4:51pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50