BulletSlope
Jump to navigation
Jump to search
native double BulletSlope(out FTranslatedLineTarget pLineTarget = null, int aimflags = 0)
Usage
Primarily used in weapons, this function's main purpose is to calculate the pitch offset of the attack, while taking the calling actor's autoaim settings into account.
Parameters
- out FTranslatedLineTarget pLineTarget
- A pointer to the previously declared FTranslatedLineTarget struct to fill the data in.
- int aimflags
- Flags to modify the behavior of the function. Multiple flags can be combined with
|
. Available flags:- ALF_FORCENOSMART — ignore sv_smartaim console variable (Verification needed)
- ALF_CHECK3D — (Need more info)
- ALF_CHECKNONSHOOTABLE — don't ignore actors with the NONSHOOTABLE flag (Verification needed)
- ALF_CHECKCONVERSATION — (Need more info)
- ALF_NOFRIENDS — ignore actors that are friendly to the caller (Verification needed)
- ALF_PORTALRESTRICT — only work through portals with a global offset (to be used for stuff that cannot remember the calculated FTranslatedLineTarget info)
- ALF_NOWEAPONCHECK — ignore Weapon.NOAUTOAIM flag on a player's weapon.
- ALF_IGNORENOAUTOAIM — for informative stuff like 'linetarget' CCMD
Examples
See the A_FireBullets code for an example of use. Most weapon functions use this too.