AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Quake Style Switch (https://forums.alliedmods.net/showthread.php?t=128102)

MPNumB 05-28-2010 21:50

Quake Style Switch
 
1 Attachment(s)
Description:
This plugins brings back the old feature from CS1.5 times. When you switch between your weapons really fast - you don't see the switch animation.


Requires:
FakeMeta
HamSandWich


Additional info:
Tested in Counter-Strike 1.6 with amxmodx 1.8.2 (dev build hg21).


Notes:
I couldn't repeat the 'random' fast-switch glitch, cause I honestly just don't know how it works. So instead I made it so it would work when you switch fast enough (by default 750ms and that is 0.75sec).


Change-Log:

* 1.3
- Changed: Plugin uses less resources.
- Fixed: Plugin wont crash the server if you use custom weapons. However their animations may not match.

* 1.2
- Fixed: Error when SWITCH_DELAY is set to 0 (when quake-style-switch is valid always).
- Fixed: Plugin not working when picking up weapons.

* 1.1
- Fixed: Usp had wrong fast-switch (idle) animation glitches while shield was in place

* 1.0
- First release.

fezh 05-28-2010 22:04

Re: Quake Style Switch
 
AFAIK in CS1.5 you don't see the animation when you change weapons quickly from AWP to Deagle or silenced M4A1 to Deagle...

jim_yang 05-28-2010 22:33

Re: Quake Style Switch
 
compiler will calculate all constant expression, it's not in runtime, so don't care about the cpu when compiling just two bit operation. It's just for good reading, but in your case both it''s ok, not a big deal.

MPNumB 05-28-2010 22:36

Re: Quake Style Switch
 
Or when switching between grenades, or much more... It is 'random' I must say - I cannot really get all conditions, so I just simply made it like this.

I am also sorry, but how should I translate "AFAIK"? Always wanted to ask that.

P.S. Why I always am having problems with web compiler... Plugin compiles perfectly localy...

// edit:

Also I just made a small fix... Player pdata linux offset is actually 5 (forgot that it's wrong in tutorial)...

Alka 05-29-2010 03:17

Re: Quake Style Switch
 
Quote:

Originally Posted by MPNumB (Post 1193958)
I am also sorry, but how should I translate "AFAIK"? Always wanted to ask that.

As far as i know.

MPNumB 05-29-2010 11:12

Re: Quake Style Switch
 
Updated to 1.1:
Fixed: Usp had wrong fast-switch (idle) animation glitches while shield was in place.

(33 downloads reseted)

Sn!ff3r 05-29-2010 17:54

Re: Quake Style Switch
 
Hint: Rename your topic to "HLTV Style weapon switching".

ConnorMcLeod 05-29-2010 18:05

Re: Quake Style Switch
 
Quote:

Originally Posted by Sn!ff3r (Post 1194696)
Hint: Rename your topic to "HLTV Style weapon switching".

No, because animation doesn't show only when player switches fast enough.


So, this plugin introduces a bug in the game...

Alucard^ 06-01-2010 16:52

Re: Quake Style Switch
 
Cool, i really like the styles of your type of plugins NumB (plugin fixers and others specifics types).

Sn!ff3r 06-01-2010 17:17

Re: Quake Style Switch
 
Bugfix, replace
PHP Code:

    g_fSwitchDelay = (float(SWITCH_DELAY)*0.001); // I don't want to do this function each time someone switches weapons (saving CPU) 

with
PHP Code:

    #if SWITCH_DELAY > 0
    
g_fSwitchDelay = (float(SWITCH_DELAY)*0.001); // I don't want to do this function each time someone switches weapons (saving CPU)
    #endif 



All times are GMT -4. The time now is 20:17.

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