From 8f516a10078becfd60ad5f813e9de0ff23f0edd2 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 16 Feb 2012 22:13:46 +0000 Subject: [PATCH] - Added pukename console command. This is mostly the same as puke, except the scripts are named, and to run a script using ACS_ExecuteAlways, you need to add "always" after the script name but before any arguments. e.g.: pukename "A Script" 1 Will run the script "A Script" with a single argument of 1, provided the script is not already running. pukename "A Script" always 1 Will always run the script "A Script" with a single argument of 1. SVN r3365 (trunk) --- src/c_cmds.cpp | 38 ++++++++++++++++++++++++++++++++++++++ src/d_net.cpp | 47 +++++++++++++++++++++++++++++++++++------------ src/d_protocol.h | 1 + src/version.h | 4 ++-- 4 files changed, 76 insertions(+), 14 deletions(-) diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index 993b4677f..da8131027 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -489,6 +489,44 @@ CCMD (puke) } } +CCMD (pukename) +{ + int argc = argv.argc(); + + if (argc < 2 || argc > 6) + { + Printf ("Usage: pukename \"