Xonotic
|
Go to the source code of this file.
Classes | |
class | Sound |
Macros | |
#define | _sound(e, c, s, v, a) sound7(e, c, s, v, a, 0, 0) |
#define | extensions(x) |
#define | sound(e, c, s, v, a) _sound(e, c, Sound_fixpath(s), v, a) |
#define | sound8(e, o, chan, samp, vol, atten, speed, sf) |
because sound7 didn't have origin More... | |
#define | Sound_fixpath(this) |
#define | tryext(ext) |
Functions | |
string | _Sound_fixpath (string base) |
Variables | |
string | _Sound_fixpath_cached |
entity | _Sound_fixpath_this |
const float | ATTEN_IDLE = 2 |
const float | ATTEN_LARGE = 1 |
const float | ATTEN_LOW = 0.2 |
const float | ATTEN_MAX = 3.984375 |
const float | ATTEN_MIN = 0.015625 |
const float | ATTEN_NONE = 0 |
const float | ATTEN_NORM = 0.5 |
const float | ATTEN_STATIC = 3 |
const int | CH_AMBIENT = -9 |
const int | CH_AMBIENT_SINGLE = 9 |
const int | CH_BGM_SINGLE = 8 |
const int | CH_INFO = 0 |
const int | CH_PAIN = -6 |
const int | CH_PAIN_SINGLE = 6 |
const int | CH_PLAYER = -7 |
const int | CH_PLAYER_SINGLE = 7 |
const int | CH_SHOTS = -4 |
const int | CH_SHOTS_SINGLE = 4 |
const int | CH_TRIGGER = -3 |
const int | CH_TRIGGER_SINGLE = 3 |
const int | CH_TUBA_SINGLE = 5 |
const int | CH_VOICE = -2 |
const int | CH_WEAPON_A = -1 |
const int | CH_WEAPON_B = -1 |
const int | CH_WEAPON_SINGLE = 1 |
const float | VOL_BASE = 0.7 |
const float | VOL_BASEVOICE = 1.0 |
const float | VOL_MUFFLED = 0.35 |
Definition at line 50 of file sound.qh.
Referenced by basketball_touch(), bot_cmd_sound(), ctf_CheckFlagReturn(), ctf_FlagThink(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Return(), ctf_Handle_Throw(), dompoint_captured(), door_go_down(), door_go_up(), door_hit_bottom(), door_hit_top(), football_touch(), GoalTouch(), InitBall(), Item_Touch(), jumppad_push(), Local_Notification_sprintf(), plat_go_down(), plat_go_up(), plat_hit_bottom(), plat_hit_top(), sandbox_ObjectFunction_Touch(), TeleportPlayer(), train_next(), W_Nexball_Touch(), and W_Reload().
#define extensions | ( | x | ) |
Referenced by _Sound_fixpath().
#define sound | ( | e, | |
c, | |||
s, | |||
v, | |||
a | |||
) | _sound(e, c, Sound_fixpath(s), v, a) |
Definition at line 52 of file sound.qh.
Referenced by buff_Inferno_CalculateTime(), buff_Respawn(), buff_Think(), buff_Touch(), CheatImpulse(), CreatureFrame_hotliquids(), CSQCModel_Effects_Apply(), CSQCModel_Hook_PreDraw(), Ent_Remove(), generator_draw(), GiveSound(), GrapplingHook_Stop(), HitSound(), Item_Respawn(), ka_DropEvent(), ka_RespawnBall(), ka_TouchEvent(), kh_Key_Collect(), kh_Key_DropAll(), kh_Key_DropOne(), kh_Key_Think(), loopsound(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Spawn(), ons_ControlPoint_Icon_Think(), ons_GeneratorDamage(), ons_Teleport(), Onslaught_CheckWinner(), play_countdown(), player_powerups_remove_all(), PlayerCorpseDamage(), PlayerDamage(), PlayerTouchExplode(), Portal_Remove(), target_init_use(), turret_die(), turret_gibboom(), vehicle_alarm(), vehicles_exit(), vehicles_gib_explode(), vehicles_projectile(), W_SetupShot_Dir_ProjectileSize_Range(), W_WeaponFrame(), and weapon_prepareattack_checkammo().
because sound7 didn't have origin
e | sound owner |
o | sound origin |
chan | sound channel |
samp | sound filename |
vol | sound volume |
atten | sound attenuation |
speed | |
sf |
#define Sound_fixpath | ( | this | ) |
Definition at line 141 of file sound.qh.
Referenced by dom_spawnteam(), Item_Touch(), and W_Reload().
#define tryext | ( | ext | ) |
Referenced by _Sound_fixpath().
Definition at line 94 of file sound.qh.
References extensions, LOG_WARNF, strcat(), string_null, and tryext.
Referenced by Sound::Sound ::sound_precache().
const float ATTEN_IDLE = 2 |
Definition at line 32 of file sound.qh.
Referenced by FireRailgunBullet(), and train_next().
const float ATTEN_MIN = 0.015625 |
Definition at line 28 of file sound.qh.
Referenced by bot_cmd_sound(), and UpdatePlayerSounds().
const float ATTEN_NONE = 0 |
Definition at line 27 of file sound.qh.
Referenced by buff_Respawn(), ctf_CheckFlagReturn(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Return(), GoalTouch(), ka_DropEvent(), ka_RespawnBall(), ka_TouchEvent(), NET_HANDLE(), ons_GeneratorThink(), Onslaught_CheckWinner(), UpdatePlayerSounds(), and vehicle_alarm().
const float ATTEN_NORM = 0.5 |
Definition at line 30 of file sound.qh.
Referenced by basketball_touch(), CheatImpulse(), CreatureFrame_hotliquids(), ctf_FlagThink(), ctf_Handle_Retrieve(), ctf_Handle_Throw(), dompoint_captured(), door_go_down(), door_go_up(), door_hit_bottom(), door_hit_top(), football_touch(), generator_draw(), GiveSound(), GrapplingHook_Stop(), InitBall(), Item_Respawn(), Item_RespawnCountdown(), Item_Touch(), jumppad_push(), ka_TouchEvent(), kh_Key_Collect(), kh_Key_DropAll(), kh_Key_DropOne(), kh_Key_Think(), Monster_Damage(), Monster_Sound(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Spawn(), ons_ControlPoint_Icon_Think(), ons_GeneratorDamage(), ons_Teleport(), plat_go_down(), plat_go_up(), plat_hit_bottom(), plat_hit_top(), play_countdown(), player_powerups_remove_all(), PlayerCorpseDamage(), PlayerDamage(), PlayerTouchExplode(), Portal_Remove(), sandbox_ObjectFunction_Touch(), TeleportPlayer(), turret_die(), turret_gibboom(), UpdatePlayerSounds(), vehicles_damage(), vehicles_exit(), vehicles_gib_explode(), vehicles_projectile(), W_Nexball_Touch(), W_Reload(), and weapon_prepareattack_checkammo().
const int CH_INFO = 0 |
Definition at line 6 of file sound.qh.
Referenced by HitSound(), Onslaught_CheckWinner(), play_countdown(), and player_powerups_remove_all().
const int CH_PAIN = -6 |
Definition at line 18 of file sound.qh.
Referenced by Monster_Damage(), ons_ControlPoint_Icon_Think(), PlayerDamage(), and vehicles_damage().
const int CH_PAIN_SINGLE = 6 |
Definition at line 19 of file sound.qh.
Referenced by NET_HANDLE().
const int CH_PLAYER = -7 |
Definition at line 20 of file sound.qh.
Referenced by DrownPlayer(), PlayerJump(), PM_check_hitground(), PM_dodging(), and PM_Footsteps().
const int CH_PLAYER_SINGLE = 7 |
Definition at line 21 of file sound.qh.
Referenced by CreatureFrame_hotliquids(), and PutPlayerInServer().
const int CH_SHOTS = -4 |
Definition at line 14 of file sound.qh.
Referenced by CheatImpulse(), FireRailgunBullet(), GrapplingHook_Stop(), PlayerCorpseDamage(), PlayerDamage(), Portal_Remove(), turret_die(), turret_gibboom(), and vehicles_gib_explode().
const int CH_SHOTS_SINGLE = 4 |
Definition at line 15 of file sound.qh.
Referenced by NET_HANDLE().
const int CH_TRIGGER = -3 |
Definition at line 12 of file sound.qh.
Referenced by basketball_touch(), buff_Inferno_CalculateTime(), buff_Respawn(), buff_Think(), buff_Touch(), ctf_CheckFlagReturn(), ctf_FlagThink(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Return(), ctf_Handle_Throw(), dompoint_captured(), football_touch(), generator_draw(), GiveSound(), GoalTouch(), InitBall(), Item_Respawn(), Item_RespawnCountdown(), Item_Touch(), jumppad_push(), ka_DropEvent(), ka_RespawnBall(), ka_TouchEvent(), kh_Key_Collect(), kh_Key_DropAll(), kh_Key_DropOne(), kh_Key_Think(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Spawn(), ons_GeneratorDamage(), ons_Teleport(), PlayerTouchExplode(), sandbox_ObjectFunction_Touch(), target_init_use(), TeleportPlayer(), and W_Nexball_Touch().
const int CH_TRIGGER_SINGLE = 3 |
Definition at line 13 of file sound.qh.
Referenced by CSQCModel_Effects_Apply(), door_go_down(), door_go_up(), door_hit_bottom(), door_hit_top(), GiveSound(), Item_Touch(), NET_HANDLE(), plat_go_down(), plat_go_up(), plat_hit_bottom(), plat_hit_top(), player_powerups_remove_all(), train_next(), train_wait(), and vehicles_exit().
const int CH_VOICE = -2 |
Definition at line 10 of file sound.qh.
Referenced by Monster_Attack_Check(), Monster_Dead(), Monster_Enemy_Check(), Monster_Move(), Monster_Spawn_Setup(), and PlayerPreThink().
const int CH_WEAPON_A = -1 |
Definition at line 7 of file sound.qh.
Referenced by CheatCommand(), vehicles_projectile(), W_Nexball_Attack(), W_Nexball_Attack2(), and weapon_prepareattack_checkammo().
const int CH_WEAPON_B = -1 |
Definition at line 8 of file sound.qh.
Referenced by bot_cmd_sound(), and FireGrapplingHook().
const int CH_WEAPON_SINGLE = 1 |
Definition at line 9 of file sound.qh.
Referenced by W_Reload(), and W_WeaponFrame().
const float VOL_BASE = 0.7 |
Definition at line 36 of file sound.qh.
Referenced by basketball_touch(), bot_cmd_sound(), buff_Inferno_CalculateTime(), buff_Respawn(), buff_Think(), buff_Touch(), CheatImpulse(), CreatureFrame_hotliquids(), CSQCModel_Effects_Apply(), CSQCModel_Hook_PreDraw(), ctf_CheckFlagReturn(), ctf_FlagThink(), ctf_Handle_Capture(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_Handle_Retrieve(), ctf_Handle_Return(), ctf_Handle_Throw(), dompoint_captured(), door_go_down(), door_go_up(), door_hit_bottom(), door_hit_top(), DrownPlayer(), Ent_Remove(), football_touch(), generator_draw(), GiveSound(), GoalTouch(), GrapplingHook_Stop(), HitSound(), InitBall(), Item_Respawn(), Item_RespawnCountdown(), Item_Touch(), jumppad_push(), ka_DropEvent(), ka_RespawnBall(), ka_TouchEvent(), kh_Key_Collect(), kh_Key_DropAll(), kh_Key_DropOne(), kh_Key_Think(), Monster_Damage(), Monster_Sound(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Spawn(), ons_ControlPoint_Icon_Think(), ons_GeneratorDamage(), ons_GeneratorThink(), ons_Teleport(), Onslaught_CheckWinner(), plat_go_down(), plat_go_up(), plat_hit_bottom(), plat_hit_top(), play_countdown(), player_powerups_remove_all(), PlayerCorpseDamage(), PlayerDamage(), PlayerJump(), PlayerTouchExplode(), PM_check_hitground(), PM_dodging(), PM_Footsteps(), Portal_Remove(), sandbox_ObjectFunction_Touch(), target_init_use(), TeleportPlayer(), train_next(), turret_die(), turret_gibboom(), UpdatePlayerSounds(), vehicles_damage(), vehicles_gib_explode(), vehicles_projectile(), W_Nexball_Touch(), W_Reload(), W_SetupShot_Dir_ProjectileSize_Range(), W_WeaponFrame(), and weapon_prepareattack_checkammo().
const float VOL_BASEVOICE = 1.0 |
Definition at line 37 of file sound.qh.
Referenced by FireRailgunBullet(), NET_HANDLE(), PlayerPreThink(), and vehicle_alarm().
const float VOL_MUFFLED = 0.35 |
Definition at line 38 of file sound.qh.
Referenced by PM_check_hitground().