Raised This Month: $ Target: $400
 0% 

[CS:GO] No recoil Scout ONLY?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fetse
Junior Member
Join Date: Oct 2019
Old 10-25-2019 , 21:20   [CS:GO] No recoil Scout ONLY?
Reply With Quote #1

Hi, I'm searching for a plugin like "Weapon modifiers" but this one is an amx plugin. I need it to be Sourcemod. I want to have no recoil but only on the Scout weapon, every other weapon should act normal, but the scout is 100% accurate even surfing.
I cannot find anything related to this and Sourcemod so I started to doubt if it's even possible. If someone is able to find a plugin like this or making it himself I would be very thankful!.
Fetse is offline
andrept4
Senior Member
Join Date: Dec 2012
Location: Portugal
Old 10-27-2019 , 13:20   Re: [CS:GO] No recoil Scout ONLY?
Reply With Quote #2

Well, I'm not that good at sourcepawn but the plugin would be something like this:

Code:
 
#pragma semicolon 1

#define PLUGIN_VERSION "1.0"

#include <sourcemod>
#include <sdktools>
#include <cstrike>

#pragma newdecls required

public Plugin myinfo =  {
	name = "No recoil on Scout",
	author = "GelaPT",
	description = "Makes Scouts have no recoil",
	version = PLUGIN_VERSION,
	url = ""
};

public void OnPluginStart() {
	HookEvent("weapon_fire", OnWeaponFire, EventHookMode_Pre);
}

public Action OnWeaponFire(Event hEvent, const char[] name, bool dontBroadcast) {
	
	int iClient = GetClientOfUserId(hEvent.GetInt("userid"));
	int iWeapon = GetClientOfUserId(hEvent.GetInt("m_hActiveWeapon"));
	char cWeapon[32];
	GetEdictClassname(iWeapon, cWeapon, sizeof(cWeapon));
	if(StrEqual(cWeapon, "weapon_ssg08", false)) {
		//Check if user is pointing towards someone and simulate hit
	}
}
__________________

Last edited by andrept4; 10-27-2019 at 13:21.
andrept4 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 10-29-2019 , 09:48   Re: [CS:GO] No recoil Scout ONLY?
Reply With Quote #3

You want to remove inaccuracy, not recoil. No weapon that fires every second can have recoil anyways. Check for a plugin named dropshot, it has what you want.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Fetse
Junior Member
Join Date: Oct 2019
Old 11-01-2019 , 23:24   Re: [CS:GO] No recoil Scout ONLY?
Reply With Quote #4

Quote:
Originally Posted by andrept4 View Post
Well, I'm not that good at sourcepawn but the plugin would be something like this:

Code:
 
#pragma semicolon 1

#define PLUGIN_VERSION "1.0"

#include <sourcemod>
#include <sdktools>
#include <cstrike>

#pragma newdecls required

public Plugin myinfo =  {
	name = "No recoil on Scout",
	author = "GelaPT",
	description = "Makes Scouts have no recoil",
	version = PLUGIN_VERSION,
	url = ""
};

public void OnPluginStart() {
	HookEvent("weapon_fire", OnWeaponFire, EventHookMode_Pre);
}

public Action OnWeaponFire(Event hEvent, const char[] name, bool dontBroadcast) {
	
	int iClient = GetClientOfUserId(hEvent.GetInt("userid"));
	int iWeapon = GetClientOfUserId(hEvent.GetInt("m_hActiveWeapon"));
	char cWeapon[32];
	GetEdictClassname(iWeapon, cWeapon, sizeof(cWeapon));
	if(StrEqual(cWeapon, "weapon_ssg08", false)) {
		//Check if user is pointing towards someone and simulate hit
	}
}

Error compiling.

Fetse is offline
Fetse
Junior Member
Join Date: Oct 2019
Old 11-01-2019 , 23:25   Re: [CS:GO] No recoil Scout ONLY?
Reply With Quote #5

Quote:
Originally Posted by eyal282 View Post
You want to remove inaccuracy, not recoil. No weapon that fires every second can have recoil anyways. Check for a plugin named dropshot, it has what you want.
I want to remove spread, but that dropdown plugin only Works for dropdown, accuracy is still odd.
Fetse 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 03:56.


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