semi godmode
is it possible to have a semi godmode? what i mean is that users cant take damage from weapons (ak, mp5, usp, he nade, knife, ect) but can take damage from falling from a high place, map damaging triggers, drowning, ect.
|
Re: semi godmode
Check out how this plugin is operated. It hooks the shot then changes the hitbox to the head. You can simply change the hitbox to "none"
It won't affect high places or drowning or anything - just weapons. I'm not sure it will fix the knife for you though. |
Re: semi godmode
i say it will block knife attacks, because the endpoint can be modified to knife someone from far away
|
Re: semi godmode
You can use hamsandwich module to hook damage.
|
Re: semi godmode
this should work fine:
PHP Code:
|
Re: semi godmode
@Wilson [29th ID]
Will it work for CS? @connorr I'm not familiar with the hamsandwich module so this would be impossible for me to do alone. @Sylwester Thank! Bullet and Knife blocking works without a problem but the way u "block" nades doesn't. u set the players health back to what ever they had after they had already taken damage so that means if the user has 1 HP, and then got hit by a nade, they would die. anyway to avoid this? |
Re: semi godmode
I'm not familiar either, but in this case, the use of ham looks like fakemeta.
Code:
|
Re: semi godmode
I fixed problem with nades by giving player 256 more hp on "player spawn" and removing it if his hp drop under 256. Player will not see any difference on his HUD but spectators gonna see wrong amount of hp.
PHP Code:
|
Re: semi godmode
Quote:
I don't think you need to include FM though. And might I say, that's a very sly way to do it - if it works it'd be morally wrong to use any other method. |
Re: semi godmode
I've tested and it works fine.
FM needed for global_get, but get_maxplayers() could do the trick. |
| All times are GMT -4. The time now is 01:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.