You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SetEyeang sets your eyeang to lock's world angle
AimToPos sets eyeang to point from eyeang to lock's world pos
and some small revisions for uniformity related to use of cached cvars
ifconvar_lock==nilthentimer.Simple(10, function() convar_lock=GetConVar("pac_sv_lock") end) end
29
30
ifconvar_lock_grab==nilthentimer.Simple(10, function() convar_lock_grab=GetConVar("pac_sv_lock_grab") end) end
30
31
ifconvar_lock_teleport==nilthentimer.Simple(10, function() convar_lock_teleport=GetConVar("pac_sv_lock_teleport") end) end
32
+
ifconvar_lock_aim==nilthentimer.Simple(10, function() convar_lock_aim=GetConVar("pac_sv_lock_aim") end) end
31
33
ifconvar_lock_max_grab_radius==nilthentimer.Simple(10, function() convar_lock_max_grab_radius=GetConVar("pac_sv_lock_max_grab_radius") end) end
32
34
ifconvar_combat_enforce_netrate==nilthentimer.Simple(10, function() convar_combat_enforce_netrate=GetConVar("pac_sv_combat_enforce_netrate_monitor_serverside") end) end
:GetSet("OverrideAngles", true, {description="Whether the part will rotate the entity alongside it, otherwise it changes just the position"})
46
54
:GetSet("RelativeGrab", false)
47
55
:GetSet("RestoreDelay", 1, {description="Seconds until the entity's original angles before self.grabbing are re-applied"})
@@ -54,6 +62,11 @@ BUILDER:StartStorableVars()
54
62
:GetSet("ContinuousSearch", false, {description="Will search for entities until one is found. Otherwise only try once when part is shown."})
55
63
:GetSet("Preview", false)
56
64
65
+
:SetPropertyGroup("AimMode")
66
+
:GetSet("AffectPitch", true)
67
+
:GetSet("AffectYaw", true)
68
+
:GetSet("ContinuousAim", true)
69
+
57
70
:SetPropertyGroup("TeleportSafety")
58
71
:GetSet("ClampDistance", false, {description="Prevents the teleport from going too far (By Radius amount). For example, if you use hitpos bone on a pac model, it can act as a safety in case the raycast falls out of bounds."})
59
72
:GetSet("SlopeSafety", false, {description="Teleports a bit up in case you end up on a slope and get stuck."})
Copy file name to clipboardExpand all lines: lua/pac3/extra/shared/net_combat.lua
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ local damagezone_allow_ragdoll_networking_for_hitpart = CreateConVar("pac_sv_dam
29
29
locallock_allow=CreateConVar("pac_sv_lock", master_default, CLIENTand {FCVAR_REPLICATED} or {FCVAR_NOTIFY, FCVAR_ARCHIVE, FCVAR_REPLICATED}, "Allow lock parts serverside")
30
30
locallock_allow_grab=CreateConVar("pac_sv_lock_grab", 1, CLIENTand {FCVAR_REPLICATED} or {FCVAR_NOTIFY, FCVAR_ARCHIVE, FCVAR_REPLICATED}, "Allow lock part grabs serverside")
31
31
locallock_allow_teleport=CreateConVar("pac_sv_lock_teleport", 1, CLIENTand {FCVAR_REPLICATED} or {FCVAR_NOTIFY, FCVAR_ARCHIVE, FCVAR_REPLICATED}, "Allow lock part teleports serverside")
32
+
locallock_allow_aim=CreateConVar("pac_sv_lock_aim", 1, CLIENTand {FCVAR_REPLICATED} or {FCVAR_NOTIFY, FCVAR_ARCHIVE, FCVAR_REPLICATED}, "Allow lock part aim serverside")
32
33
locallock_max_radius=CreateConVar("pac_sv_lock_max_grab_radius", "200", CLIENTand {FCVAR_REPLICATED} or {FCVAR_NOTIFY, FCVAR_ARCHIVE, FCVAR_REPLICATED}, "lock part maximum grab radius")
33
34
locallock_allow_grab_ply=CreateConVar("pac_sv_lock_allow_grab_ply", 1, CLIENTand {FCVAR_REPLICATED} or {FCVAR_NOTIFY, FCVAR_ARCHIVE, FCVAR_REPLICATED}, "allow grabbing players with lock part")
34
35
locallock_allow_grab_npc=CreateConVar("pac_sv_lock_allow_grab_npc", 1, CLIENTand {FCVAR_REPLICATED} or {FCVAR_NOTIFY, FCVAR_ARCHIVE, FCVAR_REPLICATED}, "allow grabbing NPCs with lock part")
0 commit comments