Skip to content

lozatto/spread

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReGameDLL_CS Spread Control Plugin

Control the FireBullets3 function vecSpread parameter

GitHub Issues GitHub Workflow Status


This plugin control the vecSpread variable of FireBullets3 on cbase.cpp

The plugin remove bullet spread on these situations:

  1. Player is on ground.
  2. Weapon Recoil (Player->pev->punchangle) is zero (The player AIM is centered).
  3. With the player walking slower than half the maximum speed of the weapon they are carrying

The plugin removed spread from first bullet shots.

It does not affect recoil, nor does it change the default behavior of aim, it just adjusts the insane pattern of shots in the game.

You can use this plugin as replacement for my Accuracy Fix Plugin.


Spread Control Settings (Click to expand)
// Activate Plugin
//
// 0 Disabled
// 1 Enabled
//
// Default "1"
sc_active "1"

// Check if the player is on ground to apply fix
//
// 0 Disable Check
// 1 Enable Check
//
// Default "1"
sc_ground_check "1"

// Maximum player speed divisor:
// Checks if the player moves above the speed:
// Formula of this: PLAYER_VELOCITY <= (WEAPON_MAX_SPEED / sc_max_speed)
// Weapons Table: https://wiki.alliedmods.net/CS_Weapons_Information
//
// > 0.0 (Greater than zero activates the check)
//
// Default "2.0"
sc_max_speed "2.0"

// Maximum player punch angle while shotting:
// The first shot always have 0.0 (Zero) of punch angle
// The second shot have other value deppending each weapon
// 
// >= 0.0 (Greater than or equal to zero activates the check)
// <  0.0 (Less than zero disables checking)
//
// Default "2.0"
sc_max_punch_angle "2.0"

// Spread value applied when all checks has passed
//
// >= 0.0 (Greater than or equal to zero enables the adjustment)
// <  0.0 (Less than zero disables adjustment)
//
// Default "0.0"
sc_spread "0.0"

// Weapons blocked from spread control fix
//
// To block weapon: Put 1 on weapon position
// To allow weapon: Put 0 on weapon slot
//
// 0 Not Used
// 1 P228
// 2 GLOCK
// 3 SCOUT
// 4 HEGRENADE
// 5 XM1014
// 6 C4
// 7 MAC10
// 8 AUG
// 9 SMOKEGRENADE
// 10 ELITE
// 11 FIVESEVEN
// 12 UMP45
// 13 SG550
// 14 GALIL
// 15 FAMAS
// 16 USP
// 17 GLOCK18
// 18 AWP
// 19 MP5N
// 20 M249
// 21 M3
// 22 M4A1
// 23 TMP
// 24 G3SG1
// 25 FLASHBANG
// 26 DEAGLE
// 27 SG552
// 28 AK47
// 29 KNIFE
// 30 P90
//
// Default "000000000000000000000000000000"
// sc_weapons_block "000000000000000000000000000000"

About

ReGameDLL_CS Spread Control Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 62.4%
  • C 37.2%
  • Other 0.4%