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

[SOLVED] Increase bullet spreading


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gugie
Member
Join Date: Jul 2012
Old 10-20-2013 , 23:45   [SOLVED] Increase bullet spreading
Reply With Quote #1

Any way to increase bullet spreading for player? Well i did it like one year ago with m_fFlags somehow. Today i tried all flags and noone of them increased bullet spreading. Even FL_INWATER, FL_FLY and FL_SWIM. =(

Thanks.

Last edited by Gugie; 10-22-2013 at 16:48.
Gugie is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 10-20-2013 , 23:47   Re: Increase bullet spreading
Reply With Quote #2

Game = ?
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
Gugie
Member
Join Date: Jul 2012
Old 10-20-2013 , 23:47   Re: Increase bullet spreading
Reply With Quote #3

css
Gugie is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 10-21-2013 , 00:03   Re: Increase bullet spreading
Reply With Quote #4

take a look at blodia's weapon mod.
__________________
sie sind das essen und wir sind die jäger!
Bimbo1 is offline
Gugie
Member
Join Date: Jul 2012
Old 10-21-2013 , 00:29   Re: Increase bullet spreading
Reply With Quote #5

PHP Code:
new ActiveWeapon GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
SetEntPropFloat(ActiveWeaponProp_Send"m_fAccuracyPenalty"5.0); 
Well, that works, but u need to hook SDKHook_PostThink and change weapon m_fAccuracyPenalty every time. Maybe there are another way to increase spread?
Gugie is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 10-21-2013 , 00:30   Re: Increase bullet spreading
Reply With Quote #6

why are you looking for another method if that works?
__________________
sie sind das essen und wir sind die jäger!
Bimbo1 is offline
Gugie
Member
Join Date: Jul 2012
Old 10-21-2013 , 00:36   Re: Increase bullet spreading
Reply With Quote #7

Optimization. I have many another plugins that uses hundreds of commands every second already. Add to that checking weapon and set prop 10-20 times per second for each player - isn't good way for optimization haha)

Last edited by Gugie; 10-21-2013 at 00:37.
Gugie is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 10-21-2013 , 00:58   Re: Increase bullet spreading
Reply With Quote #8

this would probably happen more than only 10-20 times per second. it would happen up to 66 times per second per player. but, omg, how fast do you think your computer is? the complexity of that is way too low, it's just getting a variable setting the value of another variable, it might take 1 or 2 nanoseconds of your computer. even running hundreds(or even thousands, maybe even millions) of commands like that every second wouldn't be an issue for your server. trust me, i've done things much worse, you don't have to worry about optimization of something like that at all.
also, don't forget to check if that weapon index is valid.
__________________
sie sind das essen und wir sind die jäger!
Bimbo1 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 08:21.


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