View Single Post
Author Message
Psycheat
Junior Member
Join Date: Jan 2017
Old 01-13-2017 , 23:45   [CS:GO/CS:S] Grenade Trajectory Prediction (v2.0, 19th Jan 2017)
Reply With Quote #1

Grenade Trajectory Prediction




Features
  • Supported throws: IN_ATTACK, IN_ATTACK2, IN_ATTACK + IN_ATTACK2
  • Supports hegrenade/flashbang/smokegrenade/incgrenade/molotov/tagrenade/decoy with different coloured trajectory
  • The displayed trajectory ends at where your grenade will detonate
  • Only the thrower can see the trajectory (OF COURSE )
  • Enable/Disable plugin for admins only. You can change the flags by overriding the command "gtrajectory_admin_flags"
Note: Sorry for not supporting the other 2 throws(order of mouse button release) because it really depends on the timing and prediction is not accurate at all.

Console Variables
Code:
sm_gtrajectory 1 // Enable/disable plugin
sm_gtrajectory_size 0.5 // Trajectory beam size, Min: 0.1  Max: 10.0
sm_gtrajectory_timestep 0.05 // Smaller value = more accurate, Min: 0.001  Max: 0.5 

//Below CVar is for v1.1.1 & above only (those who use grenade delay plugin)
sm_gtrajectory_delay 0

//For v2.0, prediction is very accurate but you can adjust these CVars (not more than 0.05) if you think it's off :)
sm_gtrajectory_throw 0.9 //IN_ATTACK, L-mouse
sm_gtrajectory_lob 0.6 //IN_ATTACK + IN_ATTACK2, L+R mouse
sm_gtrajectory_roll 0.27 //IN_ATTACK2, R mouse
sm_gtrajectory_admin 0 // Set to 1 to allow plugin for admins only
Changelog
Quote:
19th Jan 2017 (v2.02)
* Added CVar to enable/disable plugin for admins only (generic admin flag)

19th Jan 2017 (v2.0)
* Added support for additional throw types: IN_ATTACK, IN_ATTACK2 and IN_ATTACK + IN_ATTACK2
* Added Cvars to adjust prediction incase of inaccuracy
* Added tagrenade

16th Jan 2017 (v1.1.1)
* Added Cvar for iteration
* Added separate version for those who use grenade delay plugins

15th Jan 2017 (v1.1)
* Fixed bug where grenade did not bounce correctly
* Fixed elasticity issue (too little bounce for some surface)
* Removed loop CVar for stability.
* Added CVar to change the trail size

14th Jan 2017 (v1.0)
* Initial release.
Lastly, if you found any bugs please post a reply thanks!
Attached Files
File Type: sp Get Plugin or Get Source (grenade_trajectory_1.1.sp - 1594 views - 9.6 KB)
File Type: sp Get Plugin or Get Source (grenade_trajectory_1.1.1.sp - 1339 views - 9.3 KB)
File Type: sp Get Plugin or Get Source (grenade_trajectory_2.0.2.sp - 3362 views - 7.1 KB)

Last edited by Psycheat; 01-28-2017 at 10:10.
Psycheat is offline