mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
.editorconfig already enforces it but it's getting changed piecemeal in every commit. just get it done with. the script: ``` find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do isFile=$(file -0 "$file" | cut -d $'\0' -f2) case "$isFile" in (*text*) echo "$file is text" if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then echo "" >> "$file" fi ;; (*) echo "file isn't text" ;; esac done ```
34 lines
1.4 KiB
C
34 lines
1.4 KiB
C
#ifndef __UI_CURSORS_H
|
|
#define __UI_CURSORS_H
|
|
|
|
|
|
#define REFINE_PUNCH_1 0
|
|
#define REFINE_PUNCH_2 (gGameExternalOptions.fEnhancedCloseCombatSystem ? gSkillTraitValues.ubModifierForAPsAddedOnAimedPunches*2 : 6)
|
|
|
|
#define REFINE_KNIFE_1 0
|
|
#define REFINE_KNIFE_2 (gGameExternalOptions.fEnhancedCloseCombatSystem ? gSkillTraitValues.ubModifierForAPsAddedOnAimedBladedAttackes*2 : 6)
|
|
|
|
|
|
UINT8 GetProperItemCursor( SoldierID ubSoldierID, UINT16 ubItemIndex, INT32 usMapPos, BOOLEAN fActivated );
|
|
void DetermineCursorBodyLocation( SoldierID ubSoldierID, BOOLEAN fDisplay, BOOLEAN fRecalc );
|
|
|
|
void HandleLeftClickCursor( SOLDIERTYPE *pSoldier );
|
|
void HandleRightClickAdjustCursor( SOLDIERTYPE *pSoldier, INT32 usMapPos );
|
|
void HandleWheelAdjustCursor( SOLDIERTYPE *pSoldier, INT32 usMapPos, INT32 sDelta, INT16 brstmode );
|
|
void HandleWheelAdjustCursorWOAB( SOLDIERTYPE *pSoldier, INT32 sMapPos, INT32 sDelta );
|
|
|
|
UINT8 GetActionModeCursor( SOLDIERTYPE *pSoldier );
|
|
|
|
extern BOOLEAN gfCannotGetThrough;
|
|
|
|
void HandleUICursorRTFeedback( SOLDIERTYPE *pSoldier );
|
|
void HandleEndConfirmCursor( SOLDIERTYPE *pSoldier );
|
|
|
|
BOOLEAN GetMouseRecalcAndShowAPFlags( UINT32 *puiCursorFlags, BOOLEAN *pfShowAPs );
|
|
|
|
// HEADROCK HAM B2.7: This function calculates the nearest value (display purposes only)
|
|
// based on how trained the shooter is.
|
|
UINT32 ChanceToHitApproximation( SOLDIERTYPE * pSoldier, UINT32 uiChance );
|
|
|
|
#endif
|