From dec9908a01a027b200bedb5270891fc3d354d3bf Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 4 May 2022 23:10:23 +0100 Subject: Cheat-protect sst_l4d_testwarp Don't want people hitting a bind by accident and invalidating their runs instantly. --- src/l4dwarp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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? -- cgit v1.2.3