Scout No Scope (Updated: v1.0.1, 10/12/08)
3 Attachment(s)
General:
I'm a big fan of the scout, and enjoy some scoutzknivez from time to time. I was on a server yesterday that had a neat eventscripts based noscope mod, so I decided to make one for SourceMod. Info: This plugin will automatically remove and give the scout back when a user tries to scope. It happens very quickly, so there's very little delay. Removing the weapon and giving it back was the only way I could find to reliably "unscope". Optionally, with a cvar, you can enable bullet path laser beams as well (sharks not included). Usage: Sit back and have fun. Installation:
This was primarily designed for scout servers, or scout maps, however there is nothing preventing you from using it on a normal server. It will not affect awps or auto's. I did not include a config file since there's really only one cvar to set. Use per-map config files if you want to enable the plugin (or bullet path effects) on certain maps. Changelog: Version 1.0.1: Minor code cleanup. Added a few new entries to the translations file. Updating the translation file is required! Version 1.0: Public Release. Known Issues: None that I know of! Additional Comments: Thanks to Nican & Crimson for the laser beam code (found in scripting) :up: |
Re: Scout No Scope
No problem ;)
I have also been attempting to do this with the Sniperrifle in TF2, but haven't found a method I am happy with yet. Still trying to just straight up find a vfunc to remove zoom all together. I have tried removing zoom on prethink, changing their FOV rapidly to make the game auto unzoom them, etc. Still no luck. Does your method show it start to zoom in? *Edit* Nevermind, forgot CSS had a game event for zoom. *shakes fist at valve* |
Re: Scout No Scope
Quote:
I tried doing FakeClientCommandEx("+attack2..timer..-attack2") but that never worked either. I also tried plain old ClientCommand, but, as expected, it was blocked. Maybe it's not blocked in TF2? |
Re: Scout No Scope
Oh, I almost forgot. If you can use GetClientButtons to catch the zoom key (then verify it's a sniper rifle), I think you can use EquipPlayerWeapon to reset their view. This worked for me in CSS, but it would empty their ammo reserves. I didn't feel like going thru the trouble to reset the ammo, so I just went with the strip and give option.
Hope that helps. X |
Re: Scout No Scope
Was anything like blantantly obvious? Like did it start to zoom then zoom out, or was it obvious they didnt have a weapon for a second or something? TF2 the sniper rifle doesnt have ammo reserves, so if it does the same thing that would be fine.
Im not sure what you mean though, were you changing there weapon to something else, or just re equipping it. |
Re: Scout No Scope
Quote:
I wasn't changing their weapon, just issuing EquipPlayerWeapon(client, entityIndex). Obviously I have no idea how this would react in TF2. |
Re: Scout No Scope
Just found a server running this already. It's a blast!
I hadn't used it except for testing on Dust2 with some bots, so I wasn't sure exactly how well it would work out gameplay wise. Turned out to be way more fun that I expected! |
Re: Scout No Scope
yeah man, this plugin is awesome!
|
Re: Scout No Scope
That worked for me Xarius, I appreciate it :P It is pretty ghetto, but it works for now :P Apparently EquipPlayerWeapon() or w/e doesnt work in TF2 so I had to go find the offsets for it :(
|
Re: Scout No Scope
Quote:
X |
All times are GMT -4. The time now is 11:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.