YimMenu icon indicating copy to clipboard operation
YimMenu copied to clipboard

Create a "no u" godmode

Open LiamD-Flop opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. No problem

Describe the solution you'd like When a player attacks you, give the damage back to the player.

Provide Reasoning Who wouldn't want to no u some griefing kiddo.

LiamD-Flop avatar May 11 '22 22:05 LiamD-Flop

What do you mean by the godmode part? As in godmode yourself then do the equivalent damage back to them? The damage part can be done easily with this native. https://docs.fivem.net/natives/?_0x867654CBC7606F2C

xM4ddy avatar May 11 '22 23:05 xM4ddy

or just https://docs.fivem.net/natives/?_0x697157CED63F18D4

xM4ddy avatar May 11 '22 23:05 xM4ddy

It would ideally just negate damage without godmode. For the other part it's as it suggests. Just give the same damage back to them. Probably with the bullet native

LiamD-Flop avatar May 12 '22 07:05 LiamD-Flop

We can parse the CWeaponDamageEvent within RECEIVED_EVENT. https://github.com/citizenfx/fivem/blob/35b24f68bd2c1fc29bcfca4d4d134e53a8a72815/code/components/citizen-server-impl/src/state/ServerGameState.cpp#L4547

Tayipc38 avatar May 21 '22 14:05 Tayipc38

We may be able to redirect the damage event to the sender negating any need to manually forge the damage with natives.

Tayipc38 avatar May 22 '22 23:05 Tayipc38