diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-04 23:10:23 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-05-04 23:10:23 +0100 |
commit | dec9908a01a027b200bedb5270891fc3d354d3bf (patch) | |
tree | 386421a2cf6e3c502783b3bc470643e5375c3180 | |
parent | 10ccb3fe63af983670966a52a267571d041aee1c (diff) |
Cheat-protect sst_l4d_testwarp
Don't want people hitting a bind by accident and invalidating their runs
instantly.
-rw-r--r-- | src/l4dwarp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/l4dwarp.c b/src/l4dwarp.c index 94b7911..20f52a5 100644 --- a/src/l4dwarp.c +++ b/src/l4dwarp.c @@ -32,7 +32,7 @@ DECL_VFUNC_DYN(void, Teleport, const struct vec3f *pos, const struct vec3f *ang, const struct vec3f *vel) DEF_CCMD_HERE_UNREG(sst_l4d_testwarp, "Simulate a bot warping to you", - CON_SERVERSIDE) { + CON_SERVERSIDE | CON_CHEAT) { struct edict *ed = ent_getedict(con_cmdclient + 1); if (!ed) { con_warn("error: couldn't access player entity\n"); return; } void *e = VCALL(ed->ent_unknown, GetBaseEntity); // is this call required? |