Commit Graph
196 Commits
Author SHA1 Message Date
ac-stef ee18d192eb introduce second edit meta key (LSHIFT)
and use it to enable unscaled editing of entity attributes

(first editmeta key is still LCTRL - but it is already used during
editing entity attributes to provide 10x speed)
2015-05-27 15:47:05 +02:00
ac-stef 47367c3e61 new command to list entities of a certain type
enumentities <entity type name>
  Returns a list of the numbers of all entities of that type. If no such
  entities exist or the entity type could not be recognised, the list is
  empty.

DOCREF enumentities
2015-05-18 14:59:41 +02:00
ac-stef ae82b6b22e add attr5..7, add mapmodel pitch and roll
Keys 5, 6 and 7 (in combination with the scrollwheel) can be used to alter
the new entity attributes.

Pressing editmeta (LCTRL by default) speeds up the scrolling.

(Parts of the roll code are borrowed from Alejandro V. Garcia's commit
"Model rotations, experimental" from January 2013)

Note: coop edit is now broken between "next" and older clients, but I
  don't want to bump the protocol just yet.
2015-05-18 14:59:41 +02:00
ac-stef 3733b7e9ba script "mapmodelzoff" to allow negative z-offsets for mapmodels
A mapmodel entity is placed at a z-coordinate that is based on the floor
height of map geometry and a z-offset. The z-offset is a sum of the
entity attribute 3 and the third mapmodel slot parameter. The entity
z-offset can range from 0 to 255 while the mapmodel slot parameter can
be any integer including negative numbers. So, to place a mapmodel below
floor height, the mapmodel slot parameter has to be negative.

This script decreases the mapmodel slot parameter by one and increases
the z-offset of every mapmodel which uses that slot also by one. This
means, that all mapmodel are exact in the same place afterwards - but
the entity z-offset now has room to lower the mapmodel by one more cube.

The script requires one parameter: the mapmodel slot number.

If you need more z-offset available, run the script several times.

DOCREF mapmodelzoff
2015-05-18 14:46:03 +02:00
ac-stef fe478d13ca script to set up argument completion for loadsky
Generates a list of all available skymaps under packages/textures/skymaps
by checking for files with the ending "_ft.jpg".

Note: argument completion does not work properly for arguments with spaces.
2015-05-18 14:46:03 +02:00
ac-stef 04e3d946bc updated automatic mapmodel menus 2015-05-17 00:24:39 +02:00
cmdr_thrawnandaurhat 7fd5d19941 Update Game Mode Descriptions
* Added descriptions for modes 20 and 21
* Altered punctuation / whitespace for consistency
* Fixed grammar (you -> your)
2015-04-18 00:43:12 +02:00
aurhat 5de86f9838 Cleanup
Fixed nested list in Cubescript, fixed conopen (now read-only), removed changeteam(),
fixed name of shortcuts for team survivor modes (so it fixes
https://github.com/assaultcube/AC/issues/73 ).

DOCREF ts tsurv btsurv
2015-03-29 14:57:29 +02:00
ac-stef 631685afb6 new commands curmenu and closecurmenu
curmenu gives back the name of the currently open menu, which can be used
to close just that.

The new script "closecurmenu" uses curmenu to close the current menu.

DOCREF curmenu closecurmenu
2015-03-29 13:21:47 +02:00
ac-stef 982bc037a7 moved "scripts" folder to "config/autostart"
All cfg-files in config/autostart get executed during startup.

- more appropriate directory name and place
- files are now sorted alphabetically, as promised
- doubles are removed (resulting from identical file names in home and
  install tree) since they would only result in files run twice
- scripts with file names prefixed with "_veryfirst_", "_beforesaved_"
  or "_aftersaved_" will be run as very first config file, right before
  saved.cfg or right after saved.cfg
- all remaining files will be run right before autoexec.cfg
- the directory "config/autostart" will be created, if it doesn't already
  exist in the home tree
2015-03-24 02:06:19 +01:00
ac-stef abdf080ae9 fix "grenades" script 2015-03-20 17:11:48 +01:00
aurhat d05ea601bd Rename fullscreenscript to fullscreentoggle
Commit adds also fullscreen setting to QUICK setup menu.

DOCREF fullscreentoggle
2015-03-08 21:22:39 +01: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 8153813c14 fix string escaping for SVARs
* avoid double richtext conversion for mspmsg
* fix minor memleak in pushident()
* always escape strings for the command buffer
2015-02-23 20:12:47 +01:00
ac-stef 1956f0acc0 clean up loadcrosshair
* use the same list of gun names for all occasions
* switched syntax, so that argument completion will work
* support old syntax, so old config files will work
* fix path handling by disallowing paths altogether ;)

DOCREF loadcrosshair
2015-02-23 18:55:58 +01:00
ac-stef f75f0c0af4 add optional pre-access function for SVARs
allows a SVAR to be assembled when needed

also:

* mapmsg is now a SVAR
* getmapmsg was removed (now: $mapmsg)
* new editsvar script to edit any SVAR in the console buffer
* nonfunctional menu removed

DOCREF mapmsg getmapmsg editsvar
2015-02-23 18:52:34 +01:00
ac-stef 47f71f1288 allow symbolic arguments for some commands
* new command "listoptions" lists the argument options for several
  argument types like entities, weapons and teamnames
* "burstshots", "weapon", "magcontent", "magreserve", "fragmessage" and
  "gibmessage" now allow guns to be specified by name
* "addpunct" allows plaintext arguments like "brackets" and "quotes"
* the "team" command now understands numeric teams
* entity types can now be specified by type index number
* removed some lists from the config files (now provided by listoptions)
* added argument completion for several commands
* change nextprimary from integer to string variable

DOCREF listoptions burstshots weapon addpunct
DOCREF fragmessage gibmessage magcontent magreserve
DOCREF nextprimary
2015-02-23 18:52:04 +01:00
ac-stef 39cbee947d Merge branch 'master' into next 2015-02-08 16:17:04 +01:00
ac-stef e2ac8efadd remove restrictions on mapmodel rotation
Until now, the angles of mapmodels (and ctf-flags) were rounded to the
nearest 15-degree-step during rendering. This patch moves the rounding
to the time of placement of the model. Now the angle can be changed freely
after the model has been placed.

This commit also changes the angle resolution to 0.25 degree.

When changing the angle (press "1" + scrollwheel), additionally pressing
editmeta (a.k.a. LCTRL) changes the increments of the wheel from 1 to 10.

During a savemap with format 9, the angle resolution is reduced again, to
keep compatibility. Therefore, this features is only for testing right now.
It won't be preserved during a save (at least, as long as format 9 is used)
2014-10-22 12:08:42 +02:00
aurhat 533797f6e7 Don't show "connecting to $servername", if server doesn't have a name 2014-09-20 00:29:27 +02:00
aurhatandac-stef d021909224 Restore old working quicknadethrow code and fix bug in it
This commit restores old working quicknadethrow code, which existed after
commit: https://github.com/assaultcube/AC/commit/aaeca4ef323f09d252498bcc66eb90d51aef4586
and keeps later bug fixes (which thought needed to be fixed).
It fixes https://github.com/assaultcube/AC/issues/25

It also fixes followed bug: after releasing right mouse button/G key
and quickly pressing it again, weapon, to which quicknadethrow switched,
starts to shoot.
2014-07-19 14:43:35 +02:00
aurhat b33b74c11c Fixed reference to "scopesens" in old "zoom" script, because it is a variable nowadays, and not command.
Bug is visible clearly after typing  "/zoom 1".
2014-02-11 21:33:53 +01:00
Lucas GAUTHERON 03a73c40e7 no autodl spam
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7535 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-08-09 17:27:57 +00:00
Ronald Reagan 3ee8d9bfc0 cleanshot cares about /accuracy, minor update to servercmdline.txt for 1.2 updates. No new switches added (if needed?)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7505 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-07-07 03:18:30 +00:00
Bukz a169c98823 fullscreenscript simplified
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7500 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-06-25 21:35:35 +00:00
Bukz 18f5080ccd new command /showclips, doc fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7459 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-04-08 02:55:40 +00:00
Bukz e26ff8ffe3 removed MDArray, wait for Cube 2 backport of nested lists
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7452 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-04-03 23:13:28 +00:00
Bukz d86afb077e new command "parsestring" and friends
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7450 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-04-03 22:28:39 +00:00
Bukz 2c37c1279a /getmap successfully installed cubescript callback, /dlmap command
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7442 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-30 17:12:34 +00:00
Bukz 4100c8ee24 testchar cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7376 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-20 22:58:03 +00:00
Bukz 02d33b7c56 expand & shrink selection commands
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7373 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-19 20:40:51 +00:00
Bukz 73017f445e changeteam fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7328 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-08 22:25:16 +00:00
Bukz 4599c7201c avoid using compatibility.cfg idents where possible
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7327 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-08 22:17:28 +00:00
Bukz 1292b0f130 /reconnect, doc fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7316 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-06 03:12:00 +00:00
Bukz 42df703fc8 script fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7294 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-04 00:48:13 +00:00
Bukz c684db2c20 some boolean functions simplified
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7230 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-19 04:08:43 +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
Bukz 9c9d5be91a scripts.cfg updates/cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7191 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-13 11:15:33 +00:00
Bukz 20adf12951 new command hasprimary, little updates
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7189 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-13 10:26:34 +00:00
Bukz 8a92239403 new commands (++, --, ++f, --f)/docs.cfg for r7170
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7171 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-08 21:29:56 +00:00
Bukz fd18565fe0 updated docs.cfg for r7157/script fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7158 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-06 05:15:30 +00:00
Bukz 5ec81d59e5 updated docs.cfg/script fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7153 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-05 15:31:33 +00:00
Bukz aa20b54a55 cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7149 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-04 06:42:31 +00:00
Bukz c88414a327 new commands swapelements & sortlist/script fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7148 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-04 05:38:41 +00:00
Bukz 9635dccb3b modenum simplified/removed tutorial_demo.dmo
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7147 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-04 05:06:25 +00:00
Bukz b2a77186cc cleanup/quotes to brackets where feasible
Note: This commit effects a lot of configs, be on the look out for little cubescript errors/broken menuitems/etc. and report them ASAP.

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7146 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-04 03:30:50 +00:00
Bukz a667248854 test commit/quotes to brackets where possible
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7145 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-04 00:38:45 +00:00
aerkefiende 692fb09896 Removed the whole tutorial (unfortunately the flag spawns haven´t been the only bug ...)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7115 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-18 22:30:22 +00:00
RandumKiwi df31938100 whoops, deleted comment
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6990 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-20 09:03:31 +00:00
RandumKiwi c9d91cd7df Fix autocompletes.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6989 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-20 09:01:43 +00:00