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

[CS GO] Zoom doesnt turn off after the shot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ElectricStalin
Member
Join Date: Apr 2017
Old 07-12-2017 , 03:35   [CS GO] Zoom doesnt turn off after the shot
Reply With Quote #1

Hi
Found a bug, and I just can not understand where it came from. In general, if you shoot from the awp or the scout at the time of jitter, the zoom is not turned off. Also, an alternative fire does not work for FAMAS, with the rest of the weapon all right.
Has anyone encountered a similar one? What could be the problem? Because of what it can be?
Unfortunately, the source code is very large (more than 3500 lines), I do not think that it makes sense to attach it here.
ElectricStalin is offline
ElectricStalin
Member
Join Date: Apr 2017
Old 07-18-2017 , 17:52   Re: [CS GO] Zoom doesnt turn off after the shot
Reply With Quote #2

Update. I try to use "give weapon_awp". This awp works correctly. As I understand, it is entities bug and it has no fix. So it give another question. How can I turn off zoom for 1 sec after shot?
ElectricStalin is offline
inklesspen
Member
Join Date: Nov 2015
Location: Russia, Moscow
Old 07-18-2017 , 18:03   Re: [CS GO] Zoom doesnt turn off after the shot
Reply With Quote #3

SetEntProp(client, Prop_Send, "m_iFOV", 0)
__________________
Mai inglish is veri gud!
inklesspen is offline
Send a message via Skype™ to inklesspen
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-18-2017 , 18:10   Re: [CS GO] Zoom doesnt turn off after the shot
Reply With Quote #4

Sounds like you're using CreateEntityByClassname instead of GivePlayerItem.
__________________
Neuro Toxin is offline
ElectricStalin
Member
Join Date: Apr 2017
Old 07-19-2017 , 03:28   Re: [CS GO] Zoom doesnt turn off after the shot
Reply With Quote #5

Quote:
Originally Posted by Neuro Toxin View Post
Sounds like you're using CreateEntityByClassname instead of GivePlayerItem.
Yes, i do. GivePlayerItem does not suit me, unfortunately. So, there is no fix for this bug?
ElectricStalin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-19-2017 , 03:40   Re: [CS GO] Zoom doesnt turn off after the shot
Reply With Quote #6

You need to set the item definition index before dispatching spawn. This may get you gslt banned and u need to edit the server guidelines setting in sourcemod.cfg

Why doesnt give named item suit?
__________________
Neuro Toxin is offline
ElectricStalin
Member
Join Date: Apr 2017
Old 07-19-2017 , 03:54   Re: [CS GO] Zoom doesnt turn off after the shot
Reply With Quote #7

Quote:
Originally Posted by Neuro Toxin View Post
You need to set the item definition index before dispatching spawn. This may get you gslt banned and u need to edit the server guidelines setting in sourcemod.cfg

Why doesnt give named item suit?
I know, i set indexes before dispatchspawn. So i have problems only with this 3 weapons awp and scout (scope problem) and famas (alternative fire problem).
Weapons spawn on the ground. Players can pick up and use 10-20-30 or more weapons. And this weapon have different props (skin, rarity, etc, count of kills).
ElectricStalin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-19-2017 , 04:54   Re: [CS GO] Zoom doesnt turn off after the shot
Reply With Quote #8

Hook weapon can use and weapon equip.

Set a flag when before you use givenameditem and unset it after. Block can use and equip when the flag is set. Then teleport the weapon and set your other props.

It should work by stopping the item equipping on the player you call give named item with.
__________________
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 07:45.


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