Commit Graph
227 Commits
Author SHA1 Message Date
ac-stef 72e5b08463 add edit info panel
updateeditinfopanel is a cubescript hook to provide additional information
about the current edit situation, like, for example, the closest entity.

The returned text is rendered on the right side of the screen.

Default for updateeditinfopanel is explainclosestentity which provides
detailed info about the closest entity.

  editinfopanelmillis <n>

    update the edit info panel every n milliseconds

  hideeditinfopanel 0|1

    render (0) or hide (1) the edit info panel

DOCREF updateeditinfopanel editinfopanelmillis hideeditinfopanel
2017-05-30 10:43:55 +02:00
ac-stef 4e77b91c0e re-check line-of-sight depth readout from the graphics driver
- manually intersect line-of-sight with all map geometry
- shorten sight vector if necessary
2017-05-28 00:37:13 +02:00
ac-stef 8d21f39ad9 more mouse code cleanup
- remove sensitivity training (should be rewritten in cubescript, if
  actually required)
- more documentation on mouse sensitivity parameters
- some renaming

DOCREF findsens
2017-04-30 21:15:05 +02:00
ac-stef 68c7ad1fe6 cleanup pi
use only one constant for Pi, in case we ever need to change it
2017-04-28 15:18:00 +02:00
ac-stef 8cd6d15247 hide hudgun while menu shows a mapmodel
...to avoid overlap
2016-11-20 15:20:16 +01:00
aurhat 72dfcd73fe Cleanup
"showminremain" enabled by default, "fovcompat" removed.

DOCREF showminremain fovcompat
2016-10-14 21:49:53 +02:00
ac-stef 6de0af1b6f disable water reflection in editmode
with enabled reflection, the editing grid is not visible through the
water surface

as a side-effect also fixes #71
2016-09-04 22:00:57 +02:00
ac-stef cb630bde49 add per-map overrides to disable graphics features
The mapper has now the choice to disable several graphics features on
the client (for his map only, of course). The overrides are stored in
the map header.

mapoverride_nowaterreflect

  If "1", water reflection is disabled. Useful, when odd water colours
  are used to emulate other liquids that are not supposed to be that
  reflective.

mapoverride_limitwaveheight

  If "1", waveheight is capped at 0.1 max. Useful for small water
  areas (like puddles), where higher waves would look weird.

mapoverride_nostencilshadows

  If "1", stencil shadows are disabled. On clients, where stencil shadows
  are otherwise enabled, blob shadows are used instead. If shadows are
  disabled anyway, they stay disabled. Useful for dim maps, where hard
  shadows make no sense.


The player is free to ignore any of those overrides:

ignoreoverride_nowaterreflect

  If "1", mapoverride_nowaterreflect is ignored and regular client
  settings are used.

ignoreoverride_limitwaveheight

  If "1", mapoverride_limitwaveheight is ignored, and "waveheight" is
  used unchanged.

ignoreoverride_nostencilshadows

  If "1", mapoverride_nostencilshadows is ignored.


DOCREF mapoverride_nowaterreflect ignoreoverride_nowaterreflect
DOCREF mapoverride_limitwaveheight ignoreoverride_limitwaveheight
DOCREF mapoverride_nostencilshadows ignoreoverride_nostencilshadows
2016-09-04 17:44:22 +02:00
ac-stef e1ce0979d0 rewrite calculation of map geometry bounding box
and rename client-side struct "mapdims" to clmapdims (to avoid confusion
with server-side data)
2016-08-26 14:08:55 +02:00
ac-stef 7f9e2b19c9 fix glext command hanging without argument 2016-08-08 19:04:18 +02:00
ac-stef 917df65a51 remove all instances of round()
VS2008 doesn't have round() in math.h and the old inline function (removed
in 50d1413d, had problems in newer compilers). Now floor() or straight
casting to int is used. Let's see, which MS compiler will trip on that...
2015-09-24 19:51:50 +02:00
aurhat 3a4edff826 Cleanup
Among other things it fixes masterserver compiling.
2015-08-16 16:44:18 +02:00
ac-stef 4e3c40c3be clean up texture boxes in menus
too many copies of the same few lines...
2015-06-10 14:22:11 +02:00
ac-stef ea480a7b0c higher resolution for waterlevel
Interpret the waterlevel value as tenths of a cube.

This makes the waterlevel variable a float value to the user, while the
map file still stores an integer value - but now it is interpreted
differently - for example, a waterlevel value of 123 now means 12.3 cubes
instead of 123. Old map files are converted during loading.

Note: the values of waterlevel and hdr.waterlevel need to be in sync.

DOCREF waterlevel
2015-05-18 14:59:41 +02:00
ac-stef e318ecd68e integrated automatic embedded map config files
This patch enables an option to keep the map config embedded in the map
file - with autogenerated content. Any changes to map config data will be
written with the map. This includes data by loadnotexture, loadsky,
mapmodel, texture, fog, fogcolour, mapsound and shadowyaw. Once enabled,
all changes with those commands become persistent to the map.

New variables:

mapsoundchanged
  Set to "1" with every command that changes mapsound slots. Should be
  used to trigger a rebuild of mapsound menus.

New/changed commands:

mapsound
  Now returns the number of the created slot.

mapmodel
  Now returns the number of the created slot.

texture
  Now returns the number of the created slot.

loadsky
  Is now a builtin string variable (instead of a command), which means,
  that the current value can easily be retrieved or edited.
  The skymap name in the argument is now required to start with
  "textures/skymaps/" - but that part of the path can be omitted.
  examples:
    loadsky steini/steini2 (loads textures/skymaps/steini/steini2_*)
    loadsky textures/skymaps/steini/steini2 (same)
    loadsky ../foo/bar (loads textures/foo/bar_*)
    echo $loadsky

getnotexture
  Returns the current "notexture" path. (Set by loadnotexture)

dumpmapconfig (available for debug binaries only)
  Writes the current automatically generated map config to
  dumpmapconfig.txt.

DOCREF mapsoundchanged mapsound mapmodel texture loadsky getnotexture
2015-05-18 14:46:03 +02:00
aurhat 2dc74797af Don't show HUD reflection on water surface
For reflectclip > 1 player's HUD reflects on water surface.
It fixes https://github.com/assaultcube/AC/issues/75
2014-11-26 20:58:37 +01:00
ac-stef 4fdba4fa4a less ugly mapdims
replaced the mapdims array with a struct with properly identified members

also reduced the calclight postfilter to actually used map areas
2014-11-12 17:52:44 +01:00
ac-stef e69a94cdd8 loop optimizations
also cut some overshooting lines
2014-01-31 00:53:12 +01:00
ac-stef d258b7c186 less annoying visualisation for tagclips
- press B to get the former filled volume view
- raise the value of tagnumfull to get both views simultaneously
- cubescript parameters should be cleaned up before release
2014-01-30 19:38:41 +01:00
Alejandro V. Garcia 9455218790 removed weird caracter
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7225 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-17 09:40:51 +00:00
Lucas GAUTHERON f2a9b61683 drawzone: allow multiple zones to be drawn at once
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7013 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-30 20:40:41 +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
sireus b6b69e3f90 spechudgun -> specthudgun for more coherent var naming
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6786 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-04-16 09:32:42 +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
Alejandro V. Garcia b8b83e52a2 Restore orthd calculation
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6755 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-02-09 08:18:01 +00:00
Alejandro V. Garcia e5fbd17370 center minimap
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6754 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-02-09 02:44:38 +00:00
Lee Salzman 6c4b5b9a3a cheaper water animation
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6657 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-26 07:45:17 +00:00
sireus 12b2abf4d2 optional color parameter for drawzone
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6616 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-08-27 21:16:31 +00:00
sireus 9563e02f64 ...and reset it
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6612 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-08-23 13:23:39 +00:00
sireus f600880f07 surv zone now marked on map
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6611 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-08-23 13:14:42 +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
Lee Salzman 0b926873f5 cleaner extension checking
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6545 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-26 12:43:22 +00:00
Lucas GAUTHERON 11fc99f568 ooops
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6428 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-14 12:56:17 +00:00
Lucas GAUTHERON 6c30ee3855 removing comment
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6427 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-14 12:46:01 +00:00
Lucas GAUTHERON d3c8df87bf map overview spectate mode ?
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6425 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-14 12:12:28 +00:00
Bukz 9d8afdcad5 oldselstyle - Enable/disable 1.0.4 rendering of the grid/current selection. (quads rather than tris)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6406 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-04 19:16:11 +00:00
sireus af7e5e8c36 hudguns when spectating
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6286 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-18 15:34:16 +00:00
flowtron 977c986971 DOC: blinking-text toggles
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6114 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-02-28 16:15:11 +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
Lee Salzman c392b3d010 clean up messy anisotropy patch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6017 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-01-17 19:27:32 +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 8fc8664e83 missing ;
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5601 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-11 21:29:10 +00:00
Rafael Barreto b01dc4eddc bug fixes/enhancements: findsens, scripts, "gospectate", clean up and bug fix update 1.1.0.2 (do not revert this)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5600 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-11 21:07:48 +00:00
flowtron 4d407c7ba5 further improvement against radarimage edge-weirdness
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5482 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-30 18:32:25 +00:00
flowtron f181e5c30e improved radar/map-overview (=showmap) - still not 100% happy, but it works.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5467 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-28 11:26:20 +00:00
flowtron 7474af0b0a Win32 doesn't know "roundf()" - reverted to "round()" - caught by BCFH|Ärkefiende
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5242 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-27 12:02:19 +00:00
flowtron 3d28c2be86 fix DIV-by-0 bug (re:fps display)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5233 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-25 20:16:05 +00:00
Lee Salzman 5ddec43659 scope drawing fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4825 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-05-08 21:11:02 +00:00
Lee Salzman a9d8ee65f9 no need to toggle GL_MULTISAMPLE
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4791 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-03-17 19:24:25 +00:00
Lee Salzman 0e52f84a70 removing some GL_QUADS usage
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4790 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-03-15 18:34:43 +00:00