Fix or bin operation
This commit is contained in:
parent
880c348827
commit
9824152c4b
@ -74,7 +74,7 @@ private:
|
|||||||
if (!cheats_ok(ent))
|
if (!cheats_ok(ent))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ent->flags = game::native::FL_GODMODE;
|
ent->flags ^= game::native::FL_GODMODE;
|
||||||
|
|
||||||
send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE,
|
send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE,
|
||||||
utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_GODMODE)
|
utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_GODMODE)
|
||||||
@ -86,7 +86,7 @@ private:
|
|||||||
if (!cheats_ok(ent))
|
if (!cheats_ok(ent))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ent->flags = game::native::FL_DEMI_GODMODE;
|
ent->flags ^= game::native::FL_DEMI_GODMODE;
|
||||||
|
|
||||||
send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE,
|
send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE,
|
||||||
utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_DEMI_GODMODE)
|
utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_DEMI_GODMODE)
|
||||||
@ -98,7 +98,7 @@ private:
|
|||||||
if (!cheats_ok(ent))
|
if (!cheats_ok(ent))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ent->flags = game::native::FL_NOTARGET;
|
ent->flags ^= game::native::FL_NOTARGET;
|
||||||
|
|
||||||
send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE,
|
send_msg_to_client(ent->s.number, game::native::SV_CMD_CAN_IGNORE,
|
||||||
utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_NOTARGET)
|
utils::string::va("%c \"%s\"", 0x65, (ent->flags & game::native::FL_NOTARGET)
|
||||||
|
Loading…
Reference in New Issue
Block a user