[CSS/CSGO] Only Headshot
1 Attachment(s)
You like this plugin or my work? Support is not a crime. https://www.paypalobjects.com/en_US/..._donate_SM.gif Description: This is a Only Headshot Plugin for CSS and CSGO. Settings: You are able to choose what and how many weapons deal damage ( onlyhs_allow_oneweapon must be 1 ). Also there is the possibility that the weapons you have chosen are always killing with one shot. Supported Games:
Features:
CVars: Enable/Disable Commands
Requirements:
Changelog: ToDo:
Known Issues:
Thanks to: Download: https://github.com/Bara/OnlyHS |
Re: Simple Only Headshot
Changelog - 1.2.0
|
Re: [ANY] Simple Only Headshot
Nice plugin! :up:
I have some recommendations about the code. 1) At first dont use GetGameFolderName to detect game, use GetEngineVersion() instead (or this stock). 2) Then OnPluginStart at line 70 add IsClientInGame(i), otherwise you may have some errors if no players on a server and you decided to reload plgin. 3) TraceAttack differs from OnTakeDamage not only by different parameters, but also it can make bullets go through player - this way you should return Plugin_Handled instead of doing damage = 0.0 and returning Plugin_Changed. 4) You can ignore weapon_ prefix due to performance purposes using this way Code:
Code:
5) Use global strings for weapons instead of declaring it all the time from ConVar within TraceAttack hook. 6) For DoD:S you can add one more melee weapon: weapon_punch. 7) At line 214 use damage = float(GetClientHealth(victim)) instead of current one. |
Re: [ANY] Simple Only Headshot
Thanks, Root_!
I update this plugin in the next hours / days. |
Re: [ANY] Simple Only Headshot
Bara I forgot to note that grenades damage cannot be changed in TraceAttack hook, it fires only when grenade collides with a player, so you should add OnTakeDamage hook or dont use grenades at all.
|
Re: [CSS/CSGO] Only Headshot
Changelog - 1.3.0:
|
Re: [CSS/CSGO] Only Headshot
Looks good. Let's hope that (1<<30) damage bit is really only used for headshot damage in cstrike :)
|
Re: [CSS/CSGO] Only Headshot
Quote:
Changelog - 1.3.1:
|
Re: [CSS/CSGO] Only Headshot
I put in plugin.hsonly.cfg
Quote:
|
Re: [CSS/CSGO] Only Headshot
Quote:
onlyhs_oneweapon 0 (Enable / Disalbe Only One Weapon Damage) |
All times are GMT -4. The time now is 09:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.