Garry's Mod

Garry's Mod

Borderlands New-U Station
Simone 2019 年 7 月 11 日 下午 6:44
Patch for DarkRP
Add to [extracted addon]/lua/autorun/server/borderlands.lua:

hook.Add("PlayerDeath", "SetRespawnPos", function(ply) if !IsValid(ply) or !ply.SelectedSpawn or !IsValid(ply.SelectedSpawn) then return end ply.SpawnPos = ply.SelectedSpawn:GetPos() + Vector(50,0,0) end) hook.Add("PlayerSelectSpawn", "Respawn on dead pos", function(ply) if !IsValid(ply) or !ply.SelectedSpawn or !IsValid(ply.SelectedSpawn) then return end return false, ply.SpawnPos end)
< >
正在显示第 1 - 3 条,共 3 条留言
Fade 2021 年 2 月 7 日 上午 1:05 
Is there a way to still show the animation using this hook?
Simone 2021 年 2 月 7 日 下午 12:45 
It's been a while so I'm not sure. I'm pretty sure darkrp uses a different system for when players die, so you would have to find the code for the animation and paste it into a new hook that darkrp could understand.
最后由 Simone 编辑于; 2021 年 2 月 7 日 下午 12:45
ADHD Skittles 2023 年 10 月 30 日 下午 12:34 
if this is possible it would be amazing if someone added a cash penalty for respawning like borderlands lol
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50