Commit Graph
127 Commits
Author SHA1 Message Date
ac-stef 6bafdb0037 allow particle type names in md2emit and md3emit
md[2|3]emit <tag name> <particle type> <attrib1> <attrib2>

  particle type may now be numeric 0..19 or one of SPARK, SMOKE, ECLOSEST,
  BLOOD, DEMOTRACK, FIREBALL, SHOTLINE, BULLETHOLE, BLOODSTAIN, SCORCH,
  HUDMUZZLEFLASH, MUZZLEFLASH, ELIGHT, ESPAWN, EAMMO, EPICKUP, EMODEL,
  ECARROT, ELADDER, EFLAG

also: cleanup

DOCREF md2emit md3emit
2017-05-16 17:50:00 +02:00
ac-stef cf55e54faa fix damage indicator overflow after fastforward
break up shiftgametime() time jumps into 5-second jumps and five 1-second
jumps for the last five seconds

rename respawnoffset to lastdeath (because that's what it is)
rename clientside nextmillis to skipmillis (because that's what it does)
2017-05-13 03:46:00 +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
aurhat 9e521dfd4a Fix setting random skin of RVSF bots
Also improve assignment bots to teams.
2016-09-17 18:25:33 +02:00
ac-stef 588e9f9de8 some fixes for OSX 2016-09-08 22:36:46 +02:00
ac-stef 98d01d1f34 fix some errors and warnings for GCC 6
* do not use std::abs() because math.h includes one, that converts ints
  to double. Use own iabs(), which directly uses labs() instead.
* don't use the word "gamma" as name for variables
* don't use a homebrew round() function
2016-02-27 22:50:06 +01:00
ac-stef 826499c12d enable gcc to check arguments of printf-like functions
Check printf-like functions like conoutf, if format strings and argument
lists match.

This commit also fixes a lot of code parts that actually had mismatching
argument lists - or did things, that this check does not like.

numtime() was rewritten in an ugly but very portable fashion (it's
recommended to stay away from "long long" format entries, because errors
usually only come up at runtime).

(some code was copied from sauer)
2015-08-02 19:40:41 +02:00
Frank LENORMANDandac-stef 3ec0b1218d abide by the rules for reference objects 2015-07-18 00:51:00 +02:00
ac-stef a78d08d4ca cleanup additional ray shortening
(no longer necessary, since the actual shortening now works)
2015-07-12 18:51:14 +02:00
aurhat 0197cea1ea Fix initial values of botsshoot and idlebots
Before values of botsshoot and idlebots were showed wrong, when bot mode
wasn't earlier triggered, and later these values were overwrote after
start of bot mode (thx harps).
2015-06-21 10:36:36 +02:00
aurhat c1b10536c6 Don't duplicate bot names (almost) 2015-06-21 10:36:19 +02:00
aurhat dc1b920820 Cleanup bot code (server related) 2015-06-21 10:36:08 +02:00
aurhat 9613098697 Cleanup bot code 2015-06-21 10:34:07 +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
aurhat 8916ad4fa4 Fix playing weapon sounds
No more sounds audible on the whole map in bot modes, when bots change
weapon or have no ammo.
Gun change sound in bot code was a duplicate, so removed.
2015-04-25 20:11:26 +02:00
aurhat 6e7246d6cd Disable debug messages in bot modes
Uncomment added line to enable these messages.
2015-04-17 21:08:25 +02:00
aurhat f9ec71cbab Fix switching from spectator to active team in bot modes
Before this fix player could switch from spectate to alive mode,
but he stayed in SPECTATOR team.
Note: 2 mouse clicks are necessary to player's spawn. Second respawnself()
is needed, because spawnplayer() is executed before server will switch
player1 to active team, so he would always spawn in CLA base (in bot
team modes).
2014-09-30 10:45:18 +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
ac-stef 6e4b23734f fix clang warnings 2014-01-27 23:01:23 +01:00
Ronald Reagan 2a626b2344 togglegrap to togglegrap, also moved it to a more sane location.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7379 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-22 04:32:50 +00:00
Lucas GAUTHERON ad2aa69d2d allow bots to crouch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7339 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-10 15:52:30 +00:00
RandumKiwi 5846656953 remove that annoying extra conoutf from botgames
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7331 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-09 22:53:26 +00:00
sireus 17dc7af4c9 ffs()
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6911 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-08 16:56:58 +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 417850ca60 fixed particle type guesswork
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6878 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-09-14 22:57:42 +00:00
flowtron d0ec7e40f3 fix crash on wpvisible - still FIXME though!
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6658 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-28 19:32:31 +00:00
Lucas GAUTHERON 8f90268d82 multiple selections support in editmode
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6647 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-14 14:59:40 +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 d230f0d591 remove dbg feature
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6529 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-10 17:04:41 +00:00
Bukz ad12e10ea5 updates/fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6495 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-04 14:29:21 +00:00
Lucas GAUTHERON f936133d60 custom skins for bots
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6486 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-31 14:41:50 +00:00
Lucas GAUTHERON 958c8e91d8 allow bots scoping & headshot
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6478 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-30 17:09:34 +00:00
Bukz 8063219400 botsshoot/bot survival mode update, tolower/upper, convertcase, and testchar
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6436 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-14 18:12:39 +00:00
Bukz f5b33a6a7b idlebots update
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6435 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-14 16:27:50 +00:00
Lucas GAUTHERON 627feb7bd4 sniper trail ends when collides
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6385 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-28 08:51:42 +00:00
Bukz 0c1b63d5da mapsize command returns 6-12 silently, rather than conoutf'ing ssize
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6383 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-28 00:07:50 +00:00
sireus f9a2e7c52d rifle -> carbine
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6351 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-26 00:13:42 +00:00
sireus 3d80d2b36d fixed GCC compilation error
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6343 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-25 21:42:42 +00:00
Lucas GAUTHERON f3c0c1069f allow bots to fight only against humans (WIP) + minor bot fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6338 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-25 19:58:34 +00:00
Lucas GAUTHERON 8b6bef25b3 no spectators in singleplayer
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6335 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-25 18:39:44 +00:00
Lucas GAUTHERON 0579f05d22 bot fixes, bot use nades & akimbo
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6331 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-25 15:27:41 +00:00
Lucas GAUTHERON f16abd1ee1 smarter weapon choose, reload fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6327 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-25 00:25:38 +00:00
Lucas GAUTHERON 6eeafb0695 Allow bots to switch to knife or pistol + less useless reloads
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6322 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-24 19:11:10 +00:00
Lucas GAUTHERON 3712231df3 finishing custom bot fov support
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6321 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-24 17:21:47 +00:00
Lucas GAUTHERON bbe7f9c1a5 remove debugging tools
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6319 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-24 15:15:09 +00:00
Lucas GAUTHERON be11978b0d custom field of view for bots
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6317 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-24 15:08:27 +00:00
Lee Salzman a4b83ef2ba warning fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6248 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-14 15:24:11 +00:00
sireus 928b294dd0 bots now actually fire the rifle
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6246 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-14 14:11:25 +00:00
flowtron b967a54ed7 fixing bots
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6023 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-01-18 06:00:21 +00:00
Lee Salzman 7fe64e123c fix bot respawning times
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5726 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-08 14:26:44 +00:00