34 Commits
Author SHA1 Message Date
ac-stef b650fca2ca persistidents cleanup
Restore the old persistidents system from AC 1.0, since it's working as
intended - if used properly.

As a reminder:

  * aliases created by "const" and "tempalias" are never persistent
  * aliases created or altered by "alias" or "=" become persistent, if
    the persistidents flag is set during that operation
  * persistidents if false during the execution of almost all config files
    during game start - those files can create aliases with default values
    which will not be persistent (until changed later while the flag is
    set)
  * before saved.cfg is executed, the flag is set and stays set all
    throughout the game - which means, that all changes (from menus, for
    example) will change the altered alias to "persistent"
  * exceptions for map or model config files are unnecessary, since those
    run restricted and can't create aliases anyway
  * exceptions are necessary for "late run" config files like those in
    config/opt/

The new command "persistidents" may be used to manually set or clear the
flag. It also returns the current state of the flag. If used in a config
file, the flag is restored to its original value when the file ends
execution.

In short: only late-run config files (meaning: run after saved.cfg was
restored) may need to manually set/reset the flag. Use const and tempalias
where appropriate and clear persistidents before creating an alias with a
not-to-save default value that may be changed and made persistent later.

DOCREF persistidents
2017-05-05 15:50:59 +02:00
ac-stef 6cdb2f88e1 change scripts to use tempalias and push/pop
* no more need to delete aliases "onQuit"
* removed on_quit.cfg
* moved faq.cfg, parsestrings.cfg and survival.cfg to config/opt
* run faq.cfg and survival.cfg when needed

DOCREF addListOnQuit
2015-03-06 22:38:28 +01:00
ac-stef d8f39d821a allow kick/ban reasons to have up to 20 spaces without fuss 2014-08-02 12:41:30 +02:00
Bukz 02833f2466 documentation fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7247 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-21 10:11:45 +00:00
Bukz 7480f036d3 persistidents fixes (plz review/test)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7213 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-16 01:43:47 +00:00
Lucas GAUTHERON b1ef836fff kickmenu revert
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7084 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-13 10:28:48 +00:00
sireus 907ecb044a can now explicitly specify target team on forceteam vote
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6897 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-30 20:07:22 +00:00
Bukz f72f4f32e4 cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6860 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-08-23 23:42:03 +00:00
Bukz 4d3a6b2850 /ignoreteam, /ignoreenemy
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6857 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-08-23 04:48:28 +00:00
sireus 296dee3600 more stopdemo cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6852 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-06-29 15:38:02 +00:00
sireus e358993e16 removed old stopdemo alias
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6850 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-06-29 14:23:19 +00:00
Bukz 2fcec2c859 git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6812 e016b1c5-ed68-44aa-a2f7-31cac88cffde 2012-05-29 17:02:42 +00:00
sireus 8f39911eb0 cleaned up spectator mess a bit
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6781 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-04-05 13:19:06 +00:00
Lucas GAUTHERON fed2e7c200 admin.cfg commands : alias to const, doc updates
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6745 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-01-01 16:45:46 +00:00
Lucas GAUTHERON 526e9e22e5 TMP revert
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6698 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-11-13 16:43:14 +00:00
Lucas GAUTHERON 739a6c7f8c lockteams: 2 commands instead of 1
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6697 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-11-12 23:07:31 +00:00
Lucas GAUTHERON 70d8421100 testme : /lockteams, /forceteam [cn] [team], "matchteamsize" removed
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6696 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-11-12 13:22:59 +00:00
Bukz 79dc0e46e2 fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6423 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-13 18:03:47 +00:00
Bukz 4847ff00ff onVoteEnd, curautoteam, addpunct, curplayers, delmenu, votepending, and a new test kick/ban menu :)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6422 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-13 11:55:57 +00:00
Bukz 4eeb474467 menus/config updates
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6309 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-23 18:47:42 +00:00
Bukz 3e724e2dc4 ignoreall/unignoreall
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6209 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-03 23:00:06 +00:00
Bukz 2f03a9e035 forceme
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6207 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-03 03:32:29 +00:00
Bukz 798c79a3c6 config updates
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6187 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-01 02:24:37 +00:00
flowtron 7ae1fa000c scripts pertaining to mapstart-(once/always)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5275 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-03 14:54:57 +00:00
flowtron a9a87a1768 addOnLoad should be used to append to "mapstartonce" alias - do NOT set it directly!
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5241 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-26 18:53:55 +00:00
Rafael Barreto f66f445506 vote reason implemented for kick/ban
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5151 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-06 19:05:42 +00:00
ac_stef 938438786a more convenient demo handling
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4340 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-04-15 15:33:28 +00:00
Lee Salzman 582dfe394f cleaning up demo mode name weirdness
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3647 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-11-19 17:16:18 +00:00
ac_stef 863450c0e2 auto-forceteam (new autoteam), shuffleteams (skill sorted), autosendmap fix, better arenaspawn distribution (unfinished)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2443 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-08-30 22:10:04 +00:00
ac_stef e9b48b331e new command 'serverdesc' temporary extends the server description
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2385 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-08-25 23:31:24 +00:00
driAn 795ad1ac58 aliases
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1863 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-05-04 12:39:50 +00:00
driAn b2d0e5cda9 disable sway
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1390 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-10-18 19:07:08 +00:00
driAn 7b31baaec1 no message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1319 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-09-30 18:22:44 +00:00
driAn b6009607cb no message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1308 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-09-25 17:40:17 +00:00