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

[CSGO] Modify weapon accurate range


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-09-2018 , 14:09   [CSGO] Modify weapon accurate range
Reply With Quote #1

I want to make zeus make ANY damage if the distance is equal to or less than 500 units ( I know its damage splits into 3 categories: kill, high damage and no damage, all are according to distance )

How can such thing be done?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 07-09-2018 , 19:34   Re: [CSGO] Modify weapon accurate range
Reply With Quote #2

I would use traces and calculate the forward vector to x amount of units for x amount of damage. Block the player from receiving damage with the zeus and manually adding the damage upon the distance. That's just a thought
__________________
LenHard is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-10-2018 , 03:53   Re: [CSGO] Modify weapon accurate range
Reply With Quote #3

Quote:
Originally Posted by LenHard View Post
I would use traces and calculate the forward vector to x amount of units for x amount of damage. Block the player from receiving damage with the zeus and manually adding the damage upon the distance. That's just a thought
I know how to make a straight line but how to depend on weapon inaccuracy when although zeus is accurate it looses this feature when jumping.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 07-10-2018 , 18:20   Re: [CSGO] Modify weapon accurate range
Reply With Quote #4

Quote:
Originally Posted by eyal282 View Post
I know how to make a straight line but how to depend on weapon inaccuracy when although zeus is accurate it looses this feature when jumping.
Well if you did what I stated above, it would be pretty accurate unless that's a problem for you? If it is, you could make a random chance by getting a random number between 0 to x. That will cause inaccuracy in certain situations such as jumping or chance of missing (depending on what you really want).
__________________
LenHard is offline
backwards
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 07-10-2018 , 18:53   Re: [CSGO] Modify weapon accurate range
Reply With Quote #5

Quote:
Originally Posted by LenHard View Post
Well if you did what I stated above, it would be pretty accurate unless that's a problem for you? If it is, you could make a random chance by getting a random number between 0 to x. That will cause inaccuracy in certain situations such as jumping or chance of missing (depending on what you really want).
Yes more precisely you'd modify the forward vector by an offset angle float on x/y of say random(0.1, 5.0) based on the velocity of the player you increase the max value. Then you do the math for the endpoint using that modified vector and the end location is now randomized in that radius for a raytrace.
__________________
I highly recommend joining the SourceMod Discord Server for real time support.
backwards is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-10-2018 , 19:26   Re: [CSGO] Modify weapon accurate range
Reply With Quote #6

You could edit the game items script.

1. This applies to all players in the server
2. When the server updates and the items script changes your change is undone
__________________
Neuro Toxin is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-08-2018 , 11:14   Re: [CSGO] Modify weapon accurate range
Reply With Quote #7

Quote:
Originally Posted by Neuro Toxin View Post
You could edit the game items script.

1. This applies to all players in the server
2. When the server updates and the items script changes your change is undone
Players get kicked for having their own script not match the server's
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 12-08-2018 , 16:03   Re: [CSGO] Modify weapon accurate range
Reply With Quote #8

So you add it to the pure whitelist.
__________________
Neuro Toxin 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 05:04.


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