Commit Graph
219 Commits
Author SHA1 Message Date
ac-stef b0649b5ea5 multiple map buffers for map editing: "xmaps"
An xmap holds everything related to map editing at a certain moment: it is
a map editing snapshot. It contains the name, the header, the geometry,
the entities, the extra headers, the undo/redo data and the cameraposition
from the moment, the snapshot was taken.

Xmaps are held in memory and, if persistentxmaps is set to "1", are saved
at game end and restored at game start.

xmap_list
  lists all xmaps currently in memory

xmap_store <nickname>
  create a snapshot and store it under the given nickname
  (nicknames have to qualify as valid filenames)

xmap_restore <nickname>
  restores the named snapshot. Also creates a backup snapshot of the
  current editing data.

xmap_restore
  restores the last automatic backup snapshot. Automatic snapshots are
  taken, a) before a snapshot is restored, b) before a new map is loaded
  (if there were unsaved edits on the map) and c) when the game ends (if
  there were unsaved edits).

xmap_delete <nickname>
  deletes the named snapshot.

Unsaved edits are flagged in the HUD with an "U" in the lower right
corner of the screen.

The files with the persistent xmaps are stored in mapediting/xmaps. After
they were restored at game start, the files are moved to
mapediting/xmaps/backups. Xmap files are cubescript files.
2014-05-15 17:34:25 +02:00
ac-stef eb60302e67 cleanup
- fix possible crash in conc (but it's still an ugly hack)
- fix noob usage of strcmp
- flag some memory leaks (it would be nice, if the author(s) would clean
   up the mess himself)
- fix crash in substr
- whitespace cleanup

there are plenty more memory leaks in command.cpp - for example, every
goto in cubescript does not clean up anything
2014-05-14 22:54:37 +02:00
Lucas GAUTHERONandac-stef 8e0796a6ae transparency options for console and votes (resolves #45) 2014-05-14 14:28:54 +02:00
Ronald Reagan 305ef19887 Removing lasttarget 2014-01-23 09:23:40 -08:00
Lucas GAUTHERON 31c0d29bc2 minor code "fixes"
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7276 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-02 15:04:23 +00:00
Cristian Vlasceanu 491fb73c2d fix for crosshair not showing when spectating;
fix for setfollowplayer 0 crashing the game in bot mode

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7251 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-22 20:30:26 +00:00
Bukz f353141284 alias newselkeys - "binds" a list of keys to make new (multiple) selections in editmode (left CTRL is default)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7221 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-17 02:21:07 +00:00
Bukz 7ab718f74e /loadcrosshair fixes/updates (plz review/test)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7211 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-16 00:09:22 +00:00
Alejandro V. Garcia ea57f8b39a clean up
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7048 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-09 23:51:00 +00:00
aerkefiende d8815d7362 Removed commented line (based on rev. 7044)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7045 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-08 19:32:16 +00:00
Alejandro V. Garcia 4bd9947d67 Flags bug fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7044 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-08 09:58:43 +00:00
Ronald Reagan 3b5d000c78 Added comments and fully commented out drawsgpat
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7041 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-07 18:16:13 +00:00
aerkefiende 17f62e3375 radarheight min 5 max 500 def 150
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6994 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-23 23:00:44 +00:00
Lucas GAUTHERON c445995c1a ktf flag icons fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6979 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-16 14:03:53 +00:00
sireus 188e5834dc don't show flag counts in non-team modes (thanks, XFA)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6972 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-12 18:08:05 +00:00
aerkefiende 66f8feee3b Replaced every tab with 4 spaces
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6927 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-11-12 22:28:11 +00:00
Ronald Reagan 44abbf67d1 New shotty sources
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6919 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-29 03:01:32 +00:00
sireus b33116712c sane(r) command signatures (warning: huge commit)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6908 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-06 22:49:49 +00:00
Lucas GAUTHERON f15733342c avoid command overwriting by the accuracy board
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6886 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-23 09:53:10 +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 63e3ff8f88 "ambiguous call to overloaded function" fixed
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6764 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-03-11 08:05:59 +00:00
Alejandro V. Garcia 5a3716d3d7 Positioning changes applied to other players
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6759 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-02-17 01:48:17 +00:00
Alejandro V. Garcia 5e63720fb6 Accurate local player positioning in minimap & radar views
other players needs to be checked

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6758 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-02-16 13:08:42 +00:00
sireus 16c4b28914 HUD fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6757 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-02-13 18:35:15 +00:00
Alejandro V. Garcia e368ad2eb8 dbgpos info moved 1 row up
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6753 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-02-08 07:00:51 +00:00
sireus e442b79f83 speed indicator
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6749 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-01-30 13:09:27 +00:00
sireus 4a6b67de1f show flag count on HUD (WIP)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6748 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-01-30 12:54:18 +00:00
aerkefiende 06f73f4627 Replaced Tabs with 4 spaces in every source file
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6561 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-07-31 15:44:57 +00:00
Lucas GAUTHERON 2f3be59098 do not render inactive players (radar/minimap)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6542 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-23 22:11:24 +00:00
Bukz 33cf8715e7 "showtargetname" - enables or disables showing the player name on the HUD when in your crosshair.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6487 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-01 03:03:33 +00:00
sireus 9c797155a9 restore flashing flag icon (oops)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6419 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-11 10:52:15 +00:00
sireus 0c141d4016 flag icon transparency fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6341 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-25 21:01:38 +00:00
flowtron ad32bca94f allow transparent CTF-icons in HUD
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6264 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-17 14:52:50 +00:00
flowtron 2ef8bd9d4e radarentsize de-coupled from gdim, radarheight default = 150
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6200 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-02 19:14:46 +00:00
flowtron 5bce19a3fd getEngineState COMMAND && DOC
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6197 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-02 15:41:52 +00:00
flowtron 2d9edb6dc4 rewrite of radar-code
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6110 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-02-27 22:16:28 +00:00
flowtron a83856a1d2 preload scope.png
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6057 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-02-05 09:44:31 +00:00
flowtron 913ac5f749 getposition command (*type 0|1 int|float)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6027 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-01-18 06:04:07 +00:00
RandumKiwi d40d709dfd move crosshairs directory to its own packages path
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5823 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-11-10 22:44:50 +00:00
Rafael Barreto 09d0e4c44a accuracy box fix (will not appear again when spectating), and sound spam fixed again
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5785 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-22 18:17:27 +00:00
flowtron fa20326423 sane default value "radarheight"
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5750 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-11 10:52:30 +00:00
flowtron 0a077bbae3 TESTING: avoid being stuck in editmode + minor stuff
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5737 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-09 22:59:24 +00:00
flowtron 69b4bbcda3 no hudclock in local games (missing SV_TIMEUP)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5720 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-06 20:44:38 +00:00
flowtron 711e076df0 SV_TIMEUP now sends gamemillis, gamelimit - client can draw a hud-clock
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5709 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-04 20:40:39 +00:00
flowtron 511b23a724 gdim decoupled radarheight - WiP v001 - G.Disarray please have @it! ;-)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5689 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-09-11 14:40:40 +00:00
Alejandro V. Garcia 3837246ea8 apply displacement offset to other radarents
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5683 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-09-04 10:37:38 +00:00
Alejandro V. Garcia d8eb094b2f minimap precision improvements
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5682 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-09-04 10:25:34 +00:00
Rafael Barreto a8c21d4775 docs "fixed" (issue with win32), v-man docs.cfg again, item spawn fixed (i think), and avoiding player stucking
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5647 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-17 01:13:12 +00:00
RandumKiwi 557dbe2dfc let's be realistic about this: the white one is ugly, and the black one, although nice, probably shouldn't be default, so lets just make the original one, the default one, okay? :)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5628 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-15 02:28:05 +00:00
Rafael Barreto d68c470434 bug fix: team icon when spectating, and weird scoreboard behavior when someone is lagging
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5610 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-12 08:15:28 +00:00