Commit Graph
214 Commits
Author SHA1 Message Date
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
Lee Salzman 54cc44c3db revising pch setup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4690 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-11-07 06:42:37 +00:00
Lee Salzman 4bf52adcfd added texreduce to 1.0 branch
upped scopefov limit to 60


git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4296 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-03-25 15:18:57 +00:00
Lee Salzman 5d61a429bd force rounding on fps stat
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4117 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-01-05 04:53:45 +00:00
Lee Salzman 280fe814f0 removed !ocull check from inner loop
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4111 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-01-04 15:32:59 +00:00
Lee Salzman 6b41796c15 mapmodels in reflections fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4107 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-01-04 15:07:50 +00:00
Lee Salzman d65c8efd8d don't self-shadow dynamic entities
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4029 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-12-16 18:12:12 +00:00
Lee Salzman 287f6ae331 added texreduce var
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4028 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-12-16 13:45:03 +00:00
Lee Salzman 94da663dfd simplified fovcompat code
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3865 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-12-04 00:35:09 +00:00
Lee Salzman e8e6f89e68 make sure fovcompat clamps fov
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3864 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-12-04 00:32:33 +00:00
driAn d1d2ac20c6 fovcompat command to restore old fov
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3862 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-12-03 23:18:22 +00:00
Lee Salzman c3eb544c54 default mdldlist to 0 for S3 Graphics (still has bugs)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3758 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-11-25 19:06:55 +00:00
Lee Salzman 38748de8fa different s3 bug workaround
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3753 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-11-25 05:17:41 +00:00
Lee Salzman fcdbcf5b0d attempting workaround for S3 graphics bug
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3729 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-11-22 17:14:23 +00:00