Commit Graph
416 Commits
Author SHA1 Message Date
ac-stef fc82b82b85 cleanup 2017-05-04 16:28:04 +02:00
ac-stef 5e638565f8 cleanup
- un-inline stuff that really doesn't need to be
- unify weapon id checks
- shrink guns
2017-05-02 21:38:58 +02:00
ac-stef a1687afb4c remove realtime model modding
models can still be changed by mod packages
2017-05-01 22:01:14 +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 75e7481532 Play pull sound, when other players activate grenade 2017-03-28 21:53:40 +02:00
aurhat 419f667c0d Fix player model attack animations
Fixed animation of other players during following activities:
1. during jumping and attack - show attack animation;
2. during weapon reloading - don't show attack animation;
3. during grenade activation - don't show attack animation.
2017-03-21 23:50:45 +01:00
ac-stef 701d33af55 fix "no snprintf on VS" 2016-10-16 14:37:08 +02:00
ac-stef dae7773d68 fix involuntary shooting when switching guns while throwing a nade
also: more aggressive middle mouse button
2016-09-16 21:08:48 +02:00
ac-stef 397c441fed more verbose error messages for disabled commands 2016-09-16 17:35:47 +02:00
ac-stef a6bffc1858 new command looplisti
same as looplist, but it automatically counts the loops in "i", starting
with 0.

Example:

  a = [u v w] ; b = [x y z]
  looplisti $a m [echo $m (at $b $i) $i]

  u x 0
  v y 1
  w z 2

DOCREF looplisti
2016-09-02 21:58:39 +02:00
ac-stef 6392527cb6 fix ktf indicator during spectating
also, disable ktf indicator during editing and enable damageblend, -roll
and -indicator during spectating

DOCREF ktfindicatoralpha
2016-08-07 00:26:29 +02:00
ac-stef ca0a868acd improve damageindicator
* now eight instead of four directions
* ignore self-inflicted damage
2016-08-04 22:01:12 +02:00
aurhat e4d5c2d361 Improve accuracy info and some elements of the HUD
Accuracy will be displayed only then, if scoreboard will be enabled, and
only for current weapon - in order to focus attention of players more on
gameplay/work for team than personal stats.
Added "accuracyinfo" command to see accuracy of all used weapons in
output console.
Added some cleanups and fixed memory leak.
2015-12-31 22:57:16 +01:00
ac-stef 50d1413d5c fix some warnings
Removed homebrew round() - now we just use the math library.
2015-08-03 20:57:50 +02: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 380b8a1ebf cleanup shotgun code
no functional changes, only cleanup
2015-07-12 20:22:49 +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
ac-stef 392880ec5c fix shot ray shortening 2015-07-12 18:17:22 +02:00
ac-stef f3e72b8fb7 remove gettext
DOCREF gettext
2015-06-10 14:28:50 +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 ae82b6b22e add attr5..7, add mapmodel pitch and roll
Keys 5, 6 and 7 (in combination with the scrollwheel) can be used to alter
the new entity attributes.

Pressing editmeta (LCTRL by default) speeds up the scrolling.

(Parts of the roll code are borrowed from Alejandro V. Garcia's commit
"Model rotations, experimental" from January 2013)

Note: coop edit is now broken between "next" and older clients, but I
  don't want to bump the protocol just yet.
2015-05-18 14:59:41 +02:00
aurhat 1d497ac4d8 Add dedicated crosshair in edit mode
DOCREF loadcrosshair
2015-04-28 20:47:54 +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 0969310be2 Fix local akimbo expiration 2015-04-25 19:12:40 +02:00
aurhat 13ed2bd977 Fix akimbo expiring
Before, if player switched to akimbo just as it expired, he ended up with
akimbo and 0 ammo. Now his weapon will change to default weapon (the most
often primary), as if he would take akimbo in the hands.
2015-03-16 21:16:42 +01:00
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