Raised This Month: $120 Target: $400
 30% 

[CS1.6] Bullet Travel Time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hey
Member
Join Date: Dec 2017
Old 01-11-2018 , 15:13   [CS1.6] Bullet Travel Time
Reply With Quote #1

Hi I was wondering if Cs has bullet travel time since all i can see is the bullet hits directly i believe, so if there is such thing/physic i want to manipulate the bullet travel time.

Last edited by Hey; 01-11-2018 at 15:36. Reason: typo
Hey is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-11-2018 , 15:22   Re: [CS1.6] Bullet Travel Time
Reply With Quote #2

No, weapons are hitscan (instantaneous) in CS.
__________________
KliPPy is offline
Hey
Member
Join Date: Dec 2017
Old 01-11-2018 , 15:35   Re: [CS1.6] Bullet Travel Time
Reply With Quote #3

oh well that's disappointing.

it would be much nice if the bullets were actual entities then the real time travel would be a challenging thing for snipers, i wonder ...is it possible to make the bullets a real entity ? it can be destroyed when it make collusion with any object or another entity right ?

Last edited by Hey; 01-11-2018 at 15:36.
Hey is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-11-2018 , 16:35   Re: [CS1.6] Bullet Travel Time
Reply With Quote #4

You can try it. I don't know how well would GoldSrc handle that, it wasn't created with tiny entities in mind as far as I know.
And it wouldn't be a challenge for snipers because maps in CS are too small for bullet travel to make any noticeable difference.
__________________

Last edited by KliPPy; 01-11-2018 at 16:36.
KliPPy is offline
Hey
Member
Join Date: Dec 2017
Old 01-11-2018 , 16:57   Re: [CS1.6] Bullet Travel Time
Reply With Quote #5

well i could try make it and see if it can be any good, should i make it get affected by gravity ? or velocity ? or speed getting decreased ?

Last edited by Hey; 01-11-2018 at 16:57.
Hey is offline
Hey
Member
Join Date: Dec 2017
Old 01-11-2018 , 20:57   Re: [CS1.6] Bullet Travel Time
Reply With Quote #6

Can i have a code of how to block bullet if fired please ?
Hey is offline
Hey
Member
Join Date: Dec 2017
Old 01-12-2018 , 11:11   Re: [CS1.6] Bullet Travel Time
Reply With Quote #8

that's nothing as from what i am talking about, i need a example of how to block bullet if/when fired from guns, cuz i will be able then to make a custom bullets entities with the travel time thing/physics so may i get a example code please ?
Hey is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-13-2018 , 09:42   Re: [CS1.6] Bullet Travel Time
Reply With Quote #9

Play with m_flNextPrimaryAttack and m_flNextSecondaryAttack.
__________________
HamletEagle is offline
Hey
Member
Join Date: Dec 2017
Old 01-13-2018 , 11:37   Re: [CS1.6] Bullet Travel Time
Reply With Quote #10

ok i got the weapons blocked from shooting.
now that i got a moment to think about it.. it's not going to work as i need it to cuz the code below blocks every weapons from shooting ofc not all(c4, he, flash, smoke, knife). so no animation of shooting will be played and no bullet will get shot out.

but i think what i need is make only the bullets decals to not be shown and the damage not get registered so it can be possible for me to make my idea, so get some help at it ?

PHP Code:
/* some of the code was taken from Juice special thanks to him */

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

new const NO_RELOAD = (1<<2)|(1<<CSW_KNIFE)|(1<<CSW_C4)|(1<<CSW_HEGRENADE)|(1<<CSW_FLASHBANG)|(1<<CSW_SMOKEGRENADE);

const 
m_flNextPrimaryAttack 46;
const 
m_flNextSecondaryAttack 47;
const 
EXTRAOFFSET_WEAPONS 4;

new 
WeaponName[24];

public 
plugin_init() 
{
    
register_plugin("Block Weapons Attack""1.0""Juice/Hey");
    
    for(new 
CSW_P228<= CSW_P90i++)
    {
        if(
NO_RELOAD & (1<<i))
            continue;
            
        
get_weaponname(iWeaponName23);
        
RegisterHam(Ham_Item_DeployWeaponName"HamWeaponDeploy_Post"1);
    }
}

public 
HamWeaponDeploy_PostiEnt 
{
    
set_pdata_floatiEntm_flNextPrimaryAttack9999.0EXTRAOFFSET_WEAPONS );
    
set_pdata_floatiEntm_flNextSecondaryAttack9999.0EXTRAOFFSET_WEAPONS );

Hey is offline
Reply


Thread Tools
Display Modes

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:52.


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