Garry's Mod

Garry's Mod

TARDIS (Legacy)
DangerCal 9. mar. 2016 kl. 9:27
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!:)
Sidst redigeret af DangerCal; 20. juni 2016 kl. 17:40
< >
Viser 1-5 af 5 kommentarer
Plague Dude 9. mar. 2016 kl. 16:45 
It's meant for bigger maps, but there might be a way to alter it.
Divided  [udvikler] 16. mar. 2016 kl. 14:15 
The Rewrite has better handling for this. Does that work on the map you're using?
DangerCal 1. apr. 2016 kl. 9:34 
Yeah the rewrite works! but i prefer the old one at the moment as the new one lacks some important features:)
Joe 18. juni 2016 kl. 16:25 
Oprindeligt skrevet af 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).

Sidst redigeret af Joe; 18. juni 2016 kl. 16:58
Joe 18. juni 2016 kl. 16:51 
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 :)

Oprindeligt skrevet af 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()
Sidst redigeret af Joe; 18. juni 2016 kl. 16:51
< >
Viser 1-5 af 5 kommentarer
Per side: 1530 50