Garry's Mod

Garry's Mod

TARDIS (Legacy)
DangerCal 2016 年 3 月 9 日 上午 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!:)
最后由 DangerCal 编辑于; 2016 年 6 月 20 日 下午 5:40
< >
正在显示第 1 - 5 条,共 5 条留言
Plague Dude 2016 年 3 月 9 日 下午 4:45 
It's meant for bigger maps, but there might be a way to alter it.
Divided  [开发者] 2016 年 3 月 16 日 下午 2:15 
The Rewrite has better handling for this. Does that work on the map you're using?
DangerCal 2016 年 4 月 1 日 上午 9:34 
Yeah the rewrite works! but i prefer the old one at the moment as the new one lacks some important features:)
Joe 2016 年 6 月 18 日 下午 4:25 
引用自 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).

最后由 Joe 编辑于; 2016 年 6 月 18 日 下午 4:58
Joe 2016 年 6 月 18 日 下午 4: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 :)

引用自 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()
最后由 Joe 编辑于; 2016 年 6 月 18 日 下午 4:51
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50