Raised This Month: $51 Target: $400
 12% 

Solved Check if burst fire is enabled on gun?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Javierko
AlliedModders Donor
Join Date: Sep 2017
Location: Czech republic
Old 07-18-2019 , 16:23   Check if burst fire is enabled on gun?
Reply With Quote #1

Hey,
is there any way to check if weapon has enabled burst fire mode?
__________________
My Github & Sourcemod work.
If you like my work and if you want to support me, you can through PayPal.

Official SourceMod CZ/SK Discord: https://discord.gg/Qvar55a

Last edited by Javierko; 07-19-2019 at 08:29.
Javierko is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 07-19-2019 , 03:29   Re: Check if burst fire is enabled on gun?
Reply With Quote #2

https://forums.alliedmods.net/showpo...3&postcount=11
__________________
Ilusion9 is offline
Javierko
AlliedModders Donor
Join Date: Sep 2017
Location: Czech republic
Old 07-19-2019 , 08:28   Re: Check if burst fire is enabled on gun?
Reply With Quote #3

Thanks, solved with m_bBurstMode.

PHP Code:
bool IsBurstMode(int iWeapon)
{
    return 
view_as<bool>(GetEntProp(iWeaponProp_Send"m_bBurstMode"));

__________________
My Github & Sourcemod work.
If you like my work and if you want to support me, you can through PayPal.

Official SourceMod CZ/SK Discord: https://discord.gg/Qvar55a

Last edited by Javierko; 07-19-2019 at 08:29.
Javierko is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:39.


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