mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Removed EV_Player_UseHeld as there is already EV_GetUseHeld
This commit is contained in:
parent
9db1076603
commit
aa25ef6c68
2 changed files with 1 additions and 23 deletions
|
@ -1585,17 +1585,6 @@ Event EV_Player_StopLocalSound
|
|||
EV_NORMAL
|
||||
);
|
||||
|
||||
Event EV_Player_UseHeld
|
||||
(
|
||||
"useheld",
|
||||
EV_DEFAULT,
|
||||
NULL,
|
||||
NULL,
|
||||
"returns 1 if this player is holding use key,"
|
||||
"or 0 if he is not",
|
||||
EV_GETTER
|
||||
);
|
||||
|
||||
Event EV_Player_Userinfo
|
||||
(
|
||||
"userinfo",
|
||||
|
@ -1855,7 +1844,6 @@ CLASS_DECLARATION(Sentient, Player, "player") {
|
|||
{&EV_Player_ShowEnt, &Player::ShowEntity },
|
||||
{&EV_Player_Spectator, &Player::Spectator },
|
||||
{&EV_Player_StopLocalSound, &Player::StopLocalSound },
|
||||
{&EV_Player_UseHeld, &Player::UseHeld },
|
||||
{&EV_Player_Userinfo, &Player::Userinfo },
|
||||
{&EV_Player_ViewModelAnimFinished, &Player::EventGetViewModelAnimFinished},
|
||||
{&EV_Player_ViewModelGetAnim, &Player::EventGetViewModelAnim },
|
||||
|
@ -10344,7 +10332,7 @@ void Player::GetViewangles(Event *ev)
|
|||
|
||||
void Player::EventGetUseHeld(Event *ev)
|
||||
{
|
||||
ev->AddInteger(buttons & BUTTON_USE ? qtrue : qfalse);
|
||||
ev->AddInteger((buttons & BUTTON_USE) ? true : false);
|
||||
}
|
||||
|
||||
void Player::EventGetFireHeld(Event *ev)
|
||||
|
@ -11663,15 +11651,6 @@ void Player::StopLocalSound(Event *ev)
|
|||
gi.StopSound(entnum, CHAN_LOCAL);
|
||||
}
|
||||
|
||||
void Player::UseHeld(Event *ev)
|
||||
{
|
||||
int buttonheld = 0;
|
||||
|
||||
buttonheld = !!(buttons & BUTTON_USE);
|
||||
|
||||
ev->AddInteger(buttonheld);
|
||||
}
|
||||
|
||||
void Player::Userinfo(Event *ev)
|
||||
{
|
||||
if (!client) {
|
||||
|
|
|
@ -950,7 +950,6 @@ public:
|
|||
void SetVMASpeed(Event *ev);
|
||||
void ShowEntity(Event *ev);
|
||||
void StopLocalSound(Event *ev);
|
||||
void UseHeld(Event *ev);
|
||||
void Userinfo(Event *ev);
|
||||
void VisionGetNaked(Event *ev);
|
||||
void VisionSetBlur(Event *ev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue