Raised This Month: $32 Target: $400
 8% 

help with ANTIRUSH plugin (csgo)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 05-29-2020 , 16:51   help with ANTIRUSH plugin (csgo)
Reply With Quote #1

Hello, I need a fix for this plugin ( https://forums.alliedmods.net/showpo...&postcount=179 )

Here's the part of the source code that causes the problem, I think:
Code:
		case 2:
		{
			new Float:fVelocity[3];
			fVelocity[0] = GetEntPropFloat(activator, Prop_Send, "m_vecVelocity[0]"); 
			fVelocity[1] = GetEntPropFloat(activator, Prop_Send, "m_vecVelocity[1]"); 
			fVelocity[2] = GetEntPropFloat(activator, Prop_Send, "m_vecVelocity[2]");
			
			fVelocity[0] *= -2.0;
			fVelocity[1] *= -2.0;
			// Always bounce back with at least 200 velocity
			if(fVelocity[1] > 0.0 && fVelocity[1] < 200.0)
				fVelocity[1] = 200.0;
			else if(fVelocity[1] < 0.0 && fVelocity[1] > -200.0)
				fVelocity[1] = -200.0;
			// Never push the player up.
			if(fVelocity[2] > 0.0)
				fVelocity[2] *= -1.0;

			TeleportEntity(activator, NULL_VECTOR, NULL_VECTOR, fVelocity);
		}
So there are 2 problems. If you crouch in a barrier you can bypass it. If you change fVelocity[0] and fVelocity[1] to -10.0 you will not bypass it, but it will push you too much, you will actually fly.

Found this thread, fixing the problem number 1, but it creates another bug. More details on the thread: https://forums.alliedmods.net/showthread.php?p=2495667

Tried some functions to freeze the player after entering a barrier, doesnt work...
I am looking for a fix for atleast one month and I didnt found one.
If anyone has atleast an advice, I would appreciate a lot

ps: I have CSGO servers
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508

Last edited by xSLOW; 05-29-2020 at 16:52.
xSLOW is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 05-31-2020 , 12:57   Re: help with ANTIRUSH plugin (csgo)
Reply With Quote #2

or does anyone a better plugin like this one?
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 05-31-2020 , 13:21   Re: help with ANTIRUSH plugin (csgo)
Reply With Quote #3

you can block players buttons (IN_FORWARD, IN_LEFT, IN_RIGHT etc.) when they touch those zones. you check for players angles towards that zone. so, it will be like an invisible wall for players.

have you tried with fVelocity on 5.0 or another value between 2.0 and 10.0?
__________________
Ilusion9 is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 05-31-2020 , 21:30   Re: help with ANTIRUSH plugin (csgo)
Reply With Quote #4

Quote:
Originally Posted by Ilusion9 View Post
you can block players buttons (IN_FORWARD, IN_LEFT, IN_RIGHT etc.) when they touch those zones. you check for players angles towards that zone. so, it will be like an invisible wall for players.

have you tried with fVelocity on 5.0 or another value between 2.0 and 10.0?
Hi, tried every fVelocity possible. Already tried freezing players like that, but it was tricky and didnt worked, if you have any code suggestion would be great.
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW 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 20:29.


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