AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [Request] CSGO HeadShot Only Plugin ! (https://forums.alliedmods.net/showthread.php?t=263914)

Vivo 06-04-2015 14:25

[Request] CSGO HeadShot Only Plugin !
 
Hello, I want a CSGO HeadShot only plugin, All plugins in approved selection are not working on last sm (1.7.2) when i try to compile it locally it's giving me fatal error, Please help and thanks.

klexen 06-04-2015 15:25

Re: [Request] CSGO HeadShot Only Plugin !
 
It's not tested. But this might work.

Vivo 06-04-2015 19:23

Re: [Request] CSGO HeadShot Only Plugin !
 
Quote:

Originally Posted by klexen (Post 2304759)
It's not tested. But this might work.

Thanks it's working well !
Just small problems, C4 can't kill the players + Nades ( HE + Fire ) and zeux are not working if you can make it it will be 100% and i suggest you to post it, We need a working HS Only mod without bugs like all of the old plugins ;)

Drixevel 06-04-2015 19:45

Re: [Request] CSGO HeadShot Only Plugin !
 
Quote:

Originally Posted by klexen (Post 2304759)
It's not tested. But this might work.

Just a suggestion for your code:

This:
Code:

g_bEnabled = StringToInt(newValue) == 1 ? true : false;
Can be this:
Code:

g_bEnabled = bool:StringToInt(newValue);

secondtimesold 06-04-2015 22:33

Re: [Request] CSGO HeadShot Only Plugin !
 
https://forums.alliedmods.net/showthread.php?t=234169

Vivo 06-05-2015 18:21

Re: [Request] CSGO HeadShot Only Plugin !
 
Quote:

Originally Posted by secondtimesold (Post 2304863)

Error when compile.

klexen 06-05-2015 22:33

Re: [Request] CSGO HeadShot Only Plugin !
 
1 Attachment(s)
Quote:

Originally Posted by r3dw3r3w0lf (Post 2304836)
Just a suggestion for your code:

This:
Code:

g_bEnabled = StringToInt(newValue) == 1 ? true : false;
Can be this:
Code:

g_bEnabled = bool:StringToInt(newValue);

I know, and I've written that way before too. But I recently saw someone use it the way I used it here, and found that I liked the way it looked / read more. More importantly, it adds more syntax coloring so it looks prettier in my IDE. :P

Quote:

Originally Posted by secondtimesold (Post 2304863)


Quote:

Originally Posted by Vivo (Post 2305159)
Error when compile.

Ultimately, I do think you should use Bara's plugin as it will be maintained and auto updated. If everything doesn't work right I'm sure he'll fix it.

However, I did make a few changes to the simplehs plugin I posted that I'm curious to know if it works or not. The documentation for the damagetypes was written for CSS, but it may work in CSGO as well. In theory, it should allow all damage except bullets to the body.

Attached is version 1.1 untested.

Vivo 06-06-2015 02:21

Re: [Request] CSGO HeadShot Only Plugin !
 
Quote:

Originally Posted by klexen (Post 2305199)
I know, and I've written that way before too. But I recently saw someone use it the way I used it here, and found that I liked the way it looked / read more. More importantly, it adds more syntax coloring so it looks prettier in my IDE. :P






Ultimately, I do think you should use Bara's plugin as it will be maintained and auto updated. If everything doesn't work right I'm sure he'll fix it.

However, I did make a few changes to the simplehs plugin I posted that I'm curious to know if it works or not. The documentation for the damagetypes was written for CSS, but it may work in CSGO as well. In theory, it should allow all damage except bullets to the body.

Attached is version 1.1 untested.

Thanks a lot really great job man !
I'll try it and i'll tell you :up:

Ejziponken 06-07-2017 12:57

Re: [Request] CSGO HeadShot Only Plugin !
 
Not working for CSGO.

8guawong 06-07-2017 13:09

Re: [Request] CSGO HeadShot Only Plugin !
 
mp_damage_headshot_only 1


All times are GMT -4. The time now is 13:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.