|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "calculations.qh"Go to the source code of this file.
Functions | |
| vector | cliptoplane (vector v, vector p) |
| vector | damage_explosion_calcpush (vector explosion_f, vector target_v, float speedfactor) |
| float | explosion_calcpush_getmultiplier (vector explosion_v, vector target_v) |
| vector | findperpendicular (vector v) |
| vector | solve_cubic_abcd (float a, float b, float c, float d) |
| vector | solve_cubic_pq (float p, float q) |
| vector | W_CalculateSpread (vector dir, float spread, int spread_style, bool must_normalize) |
| vector | W_CalculateSpreadPattern (int pattern, float bias, int counter, int total) |
| int | W_GunAlign (entity this, int preferred_align) |
Definition at line 75 of file calculations.qc.
References vector.
Referenced by findperpendicular(), and W_CalculateSpread().
Definition at line 45 of file calculations.qc.
References explosion_calcpush_getmultiplier(), LOG_INFOF, and vector.
Referenced by Damage(), MUTATOR_HOOKFUNCTION(), and NET_HANDLE().
Definition at line 7 of file calculations.qc.
References vector.
Referenced by damage_explosion_calcpush().
Definition at line 132 of file calculations.qc.
References cliptoplane(), normalize(), vec3, and vector.
Referenced by W_CalculateSpread().
Definition at line 117 of file calculations.qc.
References solve_cubic_pq(), and vector.
Referenced by W_CalculateSpread().
Definition at line 80 of file calculations.qc.
References cbrt(), cos(), M_PI, sqrt(), vec3, and vector.
Referenced by solve_cubic_abcd().
Definition at line 238 of file calculations.qc.
References autocvar_g_weaponspreadfactor, cliptoplane(), cos(), cross, dir, error, findperpendicular(), gsl_ran_ugaussian(), M_PI, normalize(), random(), randomvec(), sin(), solve_cubic_abcd(), sqrt(), vector, vlen2, and W_SPREAD_GAUSS_MAX_STDEV.
Referenced by fireBullet_falloff(), nades_CheckThrow(), and W_SetupProjVelocity_Explicit().
Definition at line 187 of file calculations.qc.
References makevectors, random(), v_forward, and vector.
Referenced by W_Crylink_Attack(), W_Crylink_Attack2(), W_Hagar_Attack2_Load_Release(), and W_Shotgun_Attack().
Definition at line 138 of file calculations.qc.
References BIT, entity(), m_gunalign, MAX_WEAPONSLOTS, owner, and weaponentities.
Referenced by CL_WeaponEntity_SetModel(), Draw_GrapplingHook(), FireGrapplingHook(), GrapplingHookThink(), NET_HANDLE(), and W_ResetGunAlign().