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

[CSS] Make bullets go straight


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maxolahird
Veteran Member
Join Date: Dec 2012
Old 05-09-2017 , 13:15   [CSS] Make bullets go straight
Reply With Quote #1

Is it possible to make bullets precise in mid air like it is in the ground?
maxolahird is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 05-09-2017 , 14:59   Re: [CSS] Make bullets go straight
Reply With Quote #2

I think there is a plugin for surf servers which does this.
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.

Last edited by KissLick; 05-09-2017 at 14:59.
KissLick is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 05-11-2017 , 10:34   Re: [CSS] Make bullets go straight
Reply With Quote #3

Quote:
Originally Posted by maxolahird View Post
Is it possible to make bullets precise in mid air like it is in the ground?
This will work unless CS:Source doesn't have this netprop..
PHP Code:
public void OnClientPutInServer(int client)
{
    
SDKHook(clientSDKHook_PreThinkMakePreciseAim);
    
SDKHook(clientSDKHook_PreThinkPostMakePreciseAim);
    
SDKHook(clientSDKHook_PostThinkMakePreciseAim);
    
SDKHook(clientSDKHook_PostThinkPostMakePreciseAim);
}

public 
void OnClientDisconnect(int client)
{
    
SDKUnhook(clientSDKHook_PreThinkMakePreciseAim);
    
SDKUnhook(clientSDKHook_PreThinkPostMakePreciseAim);
    
SDKUnhook(clientSDKHook_PostThinkMakePreciseAim);
    
SDKUnhook(clientSDKHook_PostThinkPostMakePreciseAim);
}

public 
void MakePreciseAim(int client)
{
    if (
client <= || client MaxClients || !IsClientInGame(client) || GetClientTeam(client) < || !IsPlayerAlive(client))
    {
        return;
    }
    
    if (!(
GetEntProp(clientProp_Send"m_fFlags") & FL_ONGROUND))
    {
        
int weaponHeld GetEntPropEnt(clientProp_Send"m_hActiveWeapon");
        if (
weaponHeld != -|| !IsValidEntity(weaponHeld) || !IsValidEdict(weaponHeld))
        {
            return;
        }
        
        
SetEntPropFloat(weaponHeldProp_Send"m_fAccuracyPenalty"0.0);
    }

cravenge 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 04:06.


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