Commit Graph
440 Commits
Author SHA1 Message Date
aurhat 63bbd353fc Align equipment icons and stats on HUD
Among other things it fixes https://github.com/assaultcube/AC/issues/65 .
It betters also display for oldfashionedgunstats=1.
2015-03-07 12:17:44 +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 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
aurhat befd22d2e8 Don't hide the sniper rifle scope if scoreboard is enabled
The fix also allows to turn on/off the scope during intermission (since
a few years the scope was blocked in intermission, because it was
immediately turned off by scoreboard).
2015-02-08 23:05:37 +01:00
ac-stef 39cbee947d Merge branch 'master' into next 2015-02-08 16:17:04 +01:00
aurhat cac9e4b471 Reset shots in a row after death
Earlier was, for example, such negative effect, that when player had AR
and more than 3 shots in a row and died, then after spawn he saw
for a moment bigger crosshair (if he didn't turn off this default effect).
2015-01-06 13:00:19 +01:00
ac-stef 8604c198e9 cleaning up cubescript hooks
- provide a function to easily assemble and execute the command
- context-selective execution of hooks
- restrict potentially exploitable or harmful hooks to singleplayer-modes
2014-11-12 17:06:35 +01: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
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 c9db8143f4 fix some sound bug
in some cases, TraceLine may shorten the shotline to length zero, which
causes addshotline() to produces illegal coordinates for sound effects
2014-05-14 14:27:00 +02:00
RandumKiwi bcbcdd81b3 Fix warning, as per code provided by Lucas
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7615 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-22 19:23:59 +00:00
Lucas GAUTHERON ffe23e79d7 hitsound 2
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7595 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-10-12 07:54:05 +00:00
Lucas GAUTHERON 30ed9eba7b better looking bullet holes distribution with shotgun
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7503 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-06-27 22:33:05 +00:00
Lucas GAUTHERON 271ecea2c8 less randomness for shotgun rays
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7501 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-06-27 19:17:26 +00:00
Bukz 1578084964 better onReload + documentation
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7460 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-04-11 21:31:38 +00:00
Lucas GAUTHERON a7a1e46bcc merged branch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7382 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-22 19:49:21 +00:00
Bukz 6bca9438a8 modmdlbounceN - load custom gib/static grenade models via cubescript
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7216 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-16 05:54:05 +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
Bukz 51ac0cf69a more intuitive akimboendaction (plz review/test)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7195 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-14 03:32:07 +00:00
Bukz d7ab80ba89 auto-switch to akimbo if curweapon==pistol regardless of akimboautoswitch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7194 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-13 14:27:57 +00:00
Lucas GAUTHERON 43ab63a88a serverside shotgun checks, addban function
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7017 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-31 03:26:52 +00:00
Lucas GAUTHERON 251e9f10b3 shotgun: damage bug fix, constants moved
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7016 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-31 00:19:15 +00:00
Lucas GAUTHERON 3ed3c3a8d4 new weapon stats (windows binaries included)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6981 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-16 16:32:52 +00:00
aerkefiende 4e9c904bcf AR spread behaviour: 18, 23, 33, 55, 55, 55 (instead of 18, 23, 33, 33, 60, 60)
AR damage from 24 to 22, and less recoil
windows binaries

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6957 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-07 21:23:13 +00:00
sireus c1c5b2d0b0 fixed akimbo hudgun animation for non-local players
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6950 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-06 18:12:49 +00:00
Lucas GAUTHERON 283a2e6f8f shotgun multiplayer gib fix + binaries (might require improvements)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6940 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-01 23:18:28 +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 d3af385dad Shotguns should now gib singleplayer fix, MP is still bugged
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6925 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-11-11 03:01:42 +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 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
Lucas GAUTHERON ef76f7f88d hardcoded burst fire settings (menus still TODO)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6862 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-08-24 16:01: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 e542188cd4 weird crashes "fix" (still fixme)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6767 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-03-11 10:55:20 +00:00
Lucas GAUTHERON 792fa3b58a weapon changes (sg damage, higher sniper damage, lower (and static) smg damage , lower AR magsize) + win32 binaries
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6744 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-12-31 13:38:32 +00:00
Lucas GAUTHERON 9b5c5d5e4e crash fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6711 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-11-23 14:02:04 +00:00
Lucas GAUTHERON 2da4116977 hudgun crosshair bug fix (the nade bug still needs to be fixed)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6705 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-11-21 20:08:52 +00:00
flowtron b2ec034187 modmdl[vwep|weap][N] aliases for switching model of guns (even on-the-fly)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6691 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-11-06 13:29:44 +00:00
Lucas GAUTHERON 5aaeaa277a throw onAttack before onHit
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6629 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-01 10:27:03 +00:00
Lucas GAUTHERON 02968c1a2d onAttack (bukz: update if you want to pass more parameters)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6613 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-08-25 14:28:41 +00:00
Bukz 6d981b4bd7 testing onWeaponSwitch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6599 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-08-20 04:13:07 +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
Lee Salzman 097a5f2fde akimbo animation fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6471 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-27 17:25:49 +00:00
Bukz 1e20bace2e inWater command, akimboautoswitch slider, akimboendaction defaults to 1 (switch back to primary)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6390 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-29 14:04:41 +00:00
Lucas GAUTHERON 22df7a9402 fix bug (:s)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6388 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-28 20:50:28 +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
Lucas GAUTHERON ccd1c5048b quicknadethrow : switch weapon even if player is attacking
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6377 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-27 19:14:24 +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
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