summaryrefslogtreecommitdiff
path: root/src/strife/p_enemy.c
AgeCommit message (Collapse)Author
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2014-03-29strife: Eliminate use of unsafe string functions.Simon Howard
Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives.
2012-12-24Fix compiler warnings by removing variables that are set but not used.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2555
2011-10-19Fix lockups in Hexen and Strife when playing with more than fourSimon Howard
players. Subversion-branch: /branches/v2-branch Subversion-revision: 2444
2011-06-04Resolved some TODOs and fixed a couple of problem spots that wereJames Haley
forgotten. Subversion-branch: /branches/strife-branch Subversion-revision: 2344
2011-02-24Continuing verification of all P_Random calls has lead to several fixesJames Haley
in p_enemy.c, in particular to the P_NewRandomDir routine used by peasants. The demo now syncs up until he jumps the railing, and then his position is off by a bit - we may have a physics issue with railing lines. Subversion-branch: /branches/strife-branch Subversion-revision: 2275
2011-02-10Restarted work on hub save code. Brought in multiple filepath handlingJames Haley
routines from Eternity. Subversion-branch: /branches/strife-branch Subversion-revision: 2252
2011-02-05Documented most of the questflags. Misc fixes: Removed "is turbo!"James Haley
message, PST_REBORN set in G_DoLoadLevel if players.health <= 0, M_ClearRandom doesn't seed rndindex with time(), A_Chase doesn't check for target->health <= 0 when decrementing actor->threshold, and A_AcolyteSpecial fixed - ALL blue acolytes must be dead, not just one. Subversion-branch: /branches/strife-branch Subversion-revision: 2248
2011-02-04Finished second sweep of p_inter.c for missed code and bugs. SignificantJames Haley
adjustments and cleanup for P_DamageMobj, including "horror" predicate for spectral damage, missing target->target assignment for players, and use of the wrong mobj_t for R_PointToAngle2 when doing hookshot damage. Subversion-branch: /branches/strife-branch Subversion-revision: 2246
2010-10-04Programmer should attack the player and not his own location :)James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2155
2010-09-28Fix compile warnings.Simon Howard
Subversion-branch: /branches/strife-branch Subversion-revision: 2149
2010-09-26Identified quest #7 (killed Blue Acolytes), fixed a bug in P_SpawnMobjJames Haley
(Strife doesn't withhold mobj->reactioncount in skill 5), added static line specials 142, 143, and 149 for vertical texture scrolling, and made note of a bug with Irale's door line type. Subversion-branch: /branches/strife-branch Subversion-revision: 2142
2010-09-19+ Renaming MF_INCOMBAT to MF_NODIALOGSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2116
2010-09-18More use of DEH_String and DEH_snprintf, especially in the dialogJames Haley
engine. Also more use of new GiveVoiceObjective macro. Subversion-branch: /branches/strife-branch Subversion-revision: 2111
2010-09-18Tons of warnings fixed - now only 7 warnings at warning level 3, andJames Haley
most of those are outside of our own code (get on those signed/unsigned mismatches in the midi code, fraggle ;) Subversion-branch: /branches/strife-branch Subversion-revision: 2110
2010-09-18Revisions to objective macro and addition of voice with objective forJames Haley
super-shortcut. Implemented A_BossDeath - needs moar testing! Resolved conflict with p_inter.c. Subversion-branch: /branches/strife-branch Subversion-revision: 2107
2010-09-18+ Fixed a fluke in A_TeleportBeaconSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2104
2010-09-18+ A_TeleportBeacon doneSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2103
2010-09-18+ A_TeleportBeacon doneSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2102
2010-09-18+ A_AcolyteSpecial fixedSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2101
2010-09-18+ A_Tracer, A_BurnSpread and A_AcolyteSpecial doneSamuel Villareal
+ Macro added for giving objective logs Subversion-branch: /branches/strife-branch Subversion-revision: 2100
2010-09-15+ EV_DoDoor updatedSamuel Villareal
+ New door types added to enum + T_VerticalDoor updated + Split Door mechanic implemented + Linetypes 40, 174, 183 implemented Subversion-branch: /branches/strife-branch Subversion-revision: 2088
2010-09-12I munged up A_CrusaderAttack pretty good, but it's fixed now.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2074
2010-09-10Minor reformatting in p_map.c, and found some code hex-rays was ignoringJames Haley
in P_CheckMissileRange regarding maximum considered distance for Crusaders. Subversion-branch: /branches/strife-branch Subversion-revision: 2058
2010-09-10Changed MELEERANGE back to 64 and defined a new PLAYERMELEERANGE to beJames Haley
80. Fixed P_SpawnPuff by removing more unused DOOM code. Fixed Crusader flamethower attack bug due to a missed return statement. Subversion-branch: /branches/strife-branch Subversion-revision: 2054
2010-09-09+ More codepointers implementedSamuel Villareal
+ Converted some while loops to for loops in dialog functions Subversion-branch: /branches/strife-branch Subversion-revision: 2049
2010-09-09Changed mobj_t::allegiance to mobj_t::miscdata due to the fact it hasJames Haley
two completely different uses. Finished P_DialogDoChoice; dialog is now virtually 100% functional (just needs finished inventory to really do much beyond initial dialogs or getting "no" messages from everybody). Subversion-branch: /branches/strife-branch Subversion-revision: 2048
2010-09-08Numbered most of the sprite enums for easy reference. Added moreJames Haley
comments, and coded P_FreePrisoners, P_DestroyConverter, and A_ClaxonBlare. Fixed A_Listen (had some order of operations problems). Subversion-branch: /branches/strife-branch Subversion-revision: 2044
2010-09-08+ Fixing commentsSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2039
2010-09-08+ Added check if linetarget is null in P_StartDialogSamuel Villareal
+ More codepointers implemented Subversion-branch: /branches/strife-branch Subversion-revision: 2037
2010-09-07Minor tweaks to some action functions, more comments as always, removedJames Haley
all low-detail column drawers, and switched R_DrawTLColumn with R_DrawMVisTLColumn. Subversion-branch: /branches/strife-branch Subversion-revision: 2032
2010-09-07+ All linedef flags addedSamuel Villareal
+ Translucent line/wall drawing supported + Jumpover/Blockfloater flag behavior implemented + Puff behavior implemented + Some changes to PIT_AttackRadius + Some changes to PIT_ChangeSector Subversion-branch: /branches/strife-branch Subversion-revision: 2030
2010-09-06+ Fixed typo in A_SentinelAttackSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2026
2010-09-06+ More codepointers implementedSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2025
2010-09-06Fixes to Inquisitor grenades, Loremaster hookshot spawn, andJames Haley
P_SpawnFacingMissile. Subversion-branch: /branches/strife-branch Subversion-revision: 2024
2010-09-06+ P_ThrustMobj implementedSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2023
2010-09-06Minor reformatting, added some comments, and fixed P_SpawnFacingMissileJames Haley
to return th. Subversion-branch: /branches/strife-branch Subversion-revision: 2022
2010-09-06+ More codepointers implementedSamuel Villareal
Subversion-branch: /branches/strife-branch Subversion-revision: 2021
2010-09-06Comment fix, and enabled player's extreme death sound.James Haley
Subversion-branch: /branches/strife-branch Subversion-revision: 2020
2010-09-06+ Un-inlined P_NewRandomDirSamuel Villareal
+ A_SentinelAttack, A_CrusaderAttack, A_CrusaderLeft, A_CrusaderRight implemented Subversion-branch: /branches/strife-branch Subversion-revision: 2019
2010-09-06Started some second-hand verification and added more comments to p_pspr.James Haley
Significant work done on making enemies functional, including allied units, Acolytes, Templars, Reavers, Sentinels, Stalkers, Inquisitors, and Spectres. A few action functions and thingtypes were renamed. Subversion-branch: /branches/strife-branch Subversion-revision: 2018
2010-09-05Corrections to some of Kaiser's previous commits. Also, significant workJames Haley
on dialog engine, p_enemy code, and support for all new mapthing_t flag values in P_SpawnMapThing. Subversion-branch: /branches/strife-branch Subversion-revision: 2015
2010-09-05+ P_NewRandomDir function addedSamuel Villareal
+ Several updates to existing functions in P_Enemy Subversion-branch: /branches/strife-branch Subversion-revision: 2014
2010-09-04+ p_pspr.c almost completed. Needs A_FireSigil to be implementedSamuel Villareal
+ ammo arrays updated + All codepointers (except a_firesigil) added + Additional enumerations added to psprites Subversion-branch: /branches/strife-branch Subversion-revision: 2010
2010-09-04+ Found nearly duplicate names (MT_MINIMISSLE and MT_MINIMISLE).Samuel Villareal
Corrected names + Majority of player action code pointers implemented + Removed all unused Doom player codepointers + P_SpawnPlayerMissile now returns a mobj Subversion-branch: /branches/strife-branch Subversion-revision: 2009
2010-09-04+ Map flags for things added (MTF_*)Samuel Villareal
+ A_FireGrenade and A_MissileTick codepointers added + Step up height changed to 16*FRACUNIT (non-human things are excluded) + Fixed bug in P_MovePlayer where player cannot climb over things when pressing forward and jumping. Missed a line of code for this + P_SpawnSubMissile renamed to P_SpawnFaceMissile + P_SpawnMortar added + Ammo types added + Fixed some inaccuracies in P_SpawnBlood Subversion-branch: /branches/strife-branch Subversion-revision: 2008
2010-09-02+ Thing z height clipping code addedSamuel Villareal
+ Renamed MF_SKULLFLY to MF_BOUNCE + Updated P_ZMovement with Strife changes + Updates to PIT_CheckThing + Removed most references to MF_SKULLFLY Subversion-branch: /branches/strife-branch Subversion-revision: 1995
2010-09-01+ Terrain type system implementedSamuel Villareal
+ Feet clipping support added (drawing and player viewz) (TODO: Need FeetClipping support done for P_ZMovement) Subversion-branch: /branches/strife-branch Subversion-revision: 1992
2010-08-31+ All doom mobjtypes commented out or replaced as placeholdersSamuel Villareal
+ Strife mobjinfo structure filled + strife mobj flags added Subversion-branch: /branches/strife-branch Subversion-revision: 1985
2010-08-31+ Stripped out all doom states/sprites and added strife states/sprites.Samuel Villareal
All strife codepointers are set as placeholders + Strife weapons implemented + All state references commented out + All weapon references commented out Subversion-branch: /branches/strife-branch Subversion-revision: 1984