Braden Obrzut
88a616da75
- Removed what appears to be a debug breakpoint.
...
- Cleared some GCC and Clang warnings. Mostly static analysis false positives, but one of them generated a pretty massive warning in a release build.
- Use -Wno-unused-result since I doubt we're going to address those unless they actually prove to be a problem (and they only appear in release builds).
2016-01-23 19:36:13 -05:00
MajorCooke
77013877d1
A_WeaponReady Fix
...
- Zoom and Reload keys triggered the other states instead of themselves (i.e. zoom keybind triggered reload states instead of zoom)
2016-01-02 11:27:02 -06:00
Randy Heit
1d759283c0
Cleanup the zoom/reload/userX handling for A_WeaponReady
...
- There was lots of code duplication. Consolidated it.
- Renamed WRF_UserX to WRF_AllowUserX for consistancy.
2015-12-31 16:46:19 -06:00
MajorCooke
3566d3157a
Use | instead of +.
2015-12-31 16:46:17 -06:00
MajorCooke
eed6680a67
Added support for weapon states User#.
...
- Added keybinds for the user state triggering.
- Added WRF_USER# flags which must be specified in order to use.
- # can be 1-4.
2015-12-31 16:46:16 -06:00
Christoph Oelckers
b613db4ae5
Revert "Merge pull request #359 from Leonard2/master"
...
This reverts commit 364ca11b43
, reversing
changes made to dae0e217d1
.
Conflicts:
src/r_data/r_interpolate.cpp
2015-09-18 17:41:16 +02:00
Leonard
86e9504d04
Added weapon interpolation.
2015-08-19 15:59:54 +02:00
Christoph Oelckers
535102ae6e
- fixed: NULLing the flash state in P_BringUpWeapon should be done before setting the main weapon state so that it doesn't cancel any flash state effects that get initiated there.
2015-05-05 11:23:41 +02:00
ChillyDoom
db323643f8
- Renamed FBot to DBot and made it inherit from DThinker.
...
- Fixed: Bots added by players other than the net arbitrator did not have their skill set.
2014-10-14 19:57:11 +01:00
ChillyDoom
83d84eaae9
- Moved bot related variables from player_t into a new FBot class.
2014-10-13 18:40:25 +01:00
Christoph Oelckers
ee6e87d94b
- use a separate counter from AActor::special1 to count weapon use with some Hexen weapons. special1 is used for some other purposes as well, and when using a separate counter it can be reset to 0 when changing weapons, preventing counting errors.
2014-09-13 12:38:16 +02:00
Christoph Oelckers
261bc77846
- fixed: when bringing up a new weapon the current flash state needs to be removed.
...
Especially when dropping the current weapon it can still be active, this is most easily observed with Strife's crossbow which loops the flash state, but it also can happen with other weapons, right after shooting.
2014-05-20 10:29:27 +02:00
Randy Heit
445bc148b7
- Fixed: r4067 completely disabled weapon switching via A_ReFire.
...
SVN r4157 (trunk)
2013-02-22 02:42:42 +00:00
Randy Heit
e0c751114f
- Fixed: A TITLEMAP defined with SpawnWithWeaponRaised set caused a crash.
...
SVN r4156 (trunk)
2013-02-22 01:51:35 +00:00
Randy Heit
619e65ad6f
- Allow negative parameters to A_Light.
...
SVN r4144 (trunk)
2013-02-19 02:25:20 +00:00
Randy Heit
cdfd671dff
- P_MovePsprites() should now always call P_CheckWeaponSwitch(), because the latter function
...
now has its own WF_WEAPONSWITCHOK check in the correct place.
SVN r4068 (trunk)
2013-02-07 20:42:24 +00:00
Randy Heit
2cf141e914
- In A_ReFire, allow refiring when a weapon is pending, but weapon switching is not okay at this time.
...
SVN r4067 (trunk)
2013-02-07 20:38:41 +00:00
Randy Heit
87b8b6201c
- Added WRF_DISABLESWITCH flag for A_WeaponReady to indicate that any attempts to switch the weapon
...
should be discarded.
SVN r4062 (trunk)
2013-02-05 02:27:35 +00:00
Randy Heit
f0bc2fdc53
- Fixed CF_DOUBLEFIRINGSPEED is in player->cheats, not player->WeaponState.
...
SVN r4061 (trunk)
2013-02-05 01:45:23 +00:00
Randy Heit
61322cc33b
- Fixed: A_Lower needs to check player->cheats for WF_INSTANTWEAPSWITCH, not player->WeaponState.
...
SVN r4055 (trunk)
2013-01-27 04:08:00 +00:00
Randy Heit
a2f55c8067
- Well, poo. WRF_NoFire is two bits, not just one.
...
SVN r4054 (trunk)
2013-01-27 03:02:00 +00:00
Randy Heit
ed8a33aeaf
- Use P_DropWeapon() everywhere it makes sense.
...
SVN r4045 (trunk)
2013-01-25 03:32:49 +00:00
Randy Heit
5dca935305
- If this was a git repository, I wouldn't have needed to just make three broken commits in a row.
...
SVN r4044 (trunk)
2013-01-25 03:32:20 +00:00
Randy Heit
1c999d9d55
- Be more concise for WRF_NoFire in A_WeaponReady.
...
SVN r4043 (trunk)
2013-01-25 03:25:32 +00:00
Randy Heit
9d43ba39fc
- Using the proper container for weapon state flags would be good.
...
SVN r4042 (trunk)
2013-01-25 03:18:45 +00:00
Randy Heit
281ac3a49a
- Separate the player weapon state flags from the other player "cheat" flags.
...
SVN r4041 (trunk)
2013-01-25 03:09:17 +00:00
Randy Heit
ea81d3638d
- Revert WRF_NOSWITCH changes from r4024.
...
SVN r4039 (trunk)
2013-01-25 02:05:48 +00:00
Braden Obrzut
76b5757dab
- Fixed: 0 duration A_Lower loops could cause an infinite loop since A_Lower checked if the player was dead in two different ways and returned before the second one.
...
SVN r4029 (trunk)
2013-01-18 18:19:05 +00:00
Randy Heit
3111b6e7b0
- Do not clear the CF_WEAPONSWITCHOK flag each tic, so that the last setting from A_WeaponReady
...
will carry over until the next A_WeaponReady. Changed P_CheckWeaponSwitch() to clear any
pending weapon requests while weapon switching is disabled.
SVN r4024 (trunk)
2013-01-11 02:53:11 +00:00
Randy Heit
787c338871
- Added MAPINFO flag "SpawnWithWeaponRaised".
...
SVN r4013 (trunk)
2013-01-03 02:08:08 +00:00
Randy Heit
44932a6c56
- Added OB_MPDEFAULT string for being killed by a player for an unknown reason. This can be
...
overridden in custom player classes by changing their Obituary property to something else.
- ClientObituary() now only looks up the obituary message from the killing player's weapon if the
damage type was 'Melee' or 'Hitscan'.
- Gave P_GunShot() and A_FireBullets the new damage type 'Hitscan'.
- Switched A_Saw and A_CustomPunch to the 'Melee' damage type.
SVN r3646 (trunk)
2012-05-13 01:06:28 +00:00
Christoph Oelckers
cbcc7443c6
- added Xaser's bobbing style options submission.
...
SVN r3615 (trunk)
2012-05-02 20:58:29 +00:00
Christoph Oelckers
235a09d92a
- Added Xaser's weapon patch to check +reload and +zoom in A_WeaponReady.
...
SVN r3530 (trunk)
2012-04-07 13:07:25 +00:00
Randy Heit
19ec79d4f3
- Apply patch to prevent the flash state from being processed twice after using A_GunFlash.
...
SVN r3500 (trunk)
2012-04-01 02:49:04 +00:00
Randy Heit
f00f5d2304
- Allow subclasses when checking for PowerWeaponLevel2.
...
SVN r3314 (trunk)
2011-11-07 00:43:41 +00:00
Christoph Oelckers
163301dcd5
- took all includes of farchive.h out of headers. This file will have to be included explicitly in each source file that needs it.
...
SVN r3259 (trunk)
2011-07-06 14:20:54 +00:00
Christoph Oelckers
6ba0689b8d
- added DavidPH's A_AlertMonsters range submission.
...
SVN r3233 (trunk)
2011-06-13 10:30:30 +00:00
Christoph Oelckers
60a411c9ad
- added A_GunFlash extension submission.
...
SVN r3217 (trunk)
2011-05-26 23:29:36 +00:00
Christoph Oelckers
0715b7dfc6
- cleaned up switch code and fixed several problems:
...
* savegames stored an index in the switch table and performed no validation when loading a savegame.
* setting of a random switch animation duration was broken.
* separated the 2 values stored in the Time variable into 2 separate variables.
* defining a switch with one texture already belonging to another switch could leave broken definitions in the switch table.
- added function for serializing switch and door animation pointers.
- bumped min. savegame versions due to changes to DButtonThinker and removed all current savegame compatibility code.
SVN r3030 (trunk)
2010-12-12 15:43:35 +00:00
Christoph Oelckers
3662bf8a15
- reverted r2783 because it was causing problems.
...
SVN r2792 (trunk)
2010-09-16 06:51:42 +00:00
Christoph Oelckers
a0d7693f33
- added Spleen's fix for not running 2 frames of the weapon when the player spawns.
...
SVN r2783 (trunk)
2010-09-15 14:09:48 +00:00
Randy Heit
f6cd776e2d
- Extended state sprite/frame repetition to psprites.
...
SVN r2295 (trunk)
2010-04-21 01:40:03 +00:00
Randy Heit
178587fff2
- Merged SetState and SetStateNF into a single function.
...
- Added new sprite #### and frame character # to specify the behavior of sprite ---- on a
per-sprite and per-frame basis respectively.
SVN r2291 (trunk)
2010-04-19 02:46:50 +00:00
Christoph Oelckers
1c5103c9b1
- Fixed: Morphed players tried endlessly to switch to a weapon they picked up.
...
SVN r2027 (trunk)
2009-12-16 22:42:15 +00:00
Christoph Oelckers
8b27bd1434
- added 'defaultterrain' option to terrain parser for mods that want to have
...
a different default terrain than a generic solid surface.
- added format char processing to A_Print(Bold) and all printable messages
that can be defined in DECORATE.
- Fixed: The railgun code ignored MF3_ALWAYSPUFF.
- added desaturated translations.
- added optional state parameters to A_ReFire and A_GunFlash and A_CountdownArg.
SVN r1921 (trunk)
2009-10-16 16:04:19 +00:00
Christoph Oelckers
f55d1718f2
- fixed: Weapons must first check if they can be switched and afterwards
...
if they can be fired. These checks were reversed.
SVN r1789 (trunk)
2009-09-03 19:51:55 +00:00
Christoph Oelckers
6e3fdbdfc8
- fixed: Switching a weapon did not reset the refire counter.
...
SVN r1776 (trunk)
2009-08-29 15:50:03 +00:00
Randy Heit
b1b258ec55
- Gez's patch for more A_WeaponReady flags:
...
* WRF_NOBOB (1): Weapon won't bob
* WRF_NOFIRE (12): Weapon won't fire at all
* WRF_NOSWITCH (2): Weapon can't be switched off
* WRF_NOPRIMARY (4): Weapon will not fire its main attack
* WRF_NOSECONDARY (8): Weapon will not fire its alt attack
SVN r1720 (trunk)
2009-07-16 22:40:04 +00:00
Christoph Oelckers
23e4c47b5b
- Added Gez's A_WeaponReady enhancement submission.
...
SVN r1711 (trunk)
2009-07-06 15:48:31 +00:00
Randy Heit
8554ccf2a3
- Added A_WeaponBob.
...
SVN r1698 (trunk)
2009-07-01 00:58:26 +00:00