Raised This Month: $ Target: $400
 0% 

SpeedUP .:Movementspeed adjuster:.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   VEN (29)
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-07-2007 , 09:27   SpeedUP .:Movementspeed adjuster:.
Reply With Quote #1

SpeedUP - Movementspeed adjuster
.
.

Quote:
/********************************************* *************************************
* Author: regalis ([email protected])
*
* Version: 1.1
*
* Description:
* -SpeedUP is a plugin that changes the movement speed for your players.
* -There can be any Speedvalue between 0 and 2000!
* -It emulates stop emitting the footstep sound while walking.(which is normaly done by the HL-engine)
* That means you can sneak around corners despite the amazing speed ;)
* -There is a Digital speed-meter on top of the screen which shows the current speed in px/s (pixel/second)
* NEW-Now i have added an special effect:
* You can choose between "fire" or "smoke" which will follow you while running at highspeed
*
*
* Requirements:
* -Fun-Modul
* -Fakemeta-Modul
*
*
* Admin-Commands:
* -amx_speedup_toggle - Toggles SpeedUP ON|OFF
* -amx_speedup_value <speed> - Changes the Speed for the players. (Values are available from 0 to 2000)
* -amx_speedup_bar - Toggles the appearance of the SpeedUP-Bar on the top of the screen ON|OFF
* -amx_speedup_trail - Toggles the SpeedUP-Trail ON|OFF
* -amx_speedup_sprite - Toggles the SpeedUP-Trail-Sprite between FIRE|SMOKE
*
*
*
* CVARS:
* -amx_speedup 0|1 (Default: 1)
* -amx_speedvalue 0 - 2000 (Default: 250)
* "0" means no movement.
* "250" is standard speed. ("500" is a good amount to be able to play at)
* -amx_speedbar 0|1 (Default: 1)
* -amx_speedtrail 0|1 (Default: 1)
* -amx_speedsprite 0|1 (Default: 1)
*
*
* Changelog:
* V0.1
* !Changed "for(new i=1;i<=get_maxplayers();i++)" to "get_players"
* !Changed "set_cvar_num" to "set_pcvar_num"
* +Added weapon based variation of speed (awp is slower than knife)
* +Rewritten hole code because some strange behavior
*
* V0.2
* !Fixed a Bug checking if switched weapon is active
* !Fixed the Bug where sometimes at roundstart the speed wasn't set before weaponswitch
*
* V0.3
* !Fixed various problems encountered by VEN
* !Fixed a bug that when a round_starts sometimes the players had default speed instead of the speedvalue
*
* V0.4
* +Added a routine which checks if the player is walking (+speed) or running and emits the footprintsound or not
* +Added Plugin-Version as CVAR
*
* V0.5
* +Added a Speed-Bar which displays the current speed to the player (cvar and admincommand for this feature is also implemented)
*
* V0.6
* !Fixed some minor bugs
* !Changed indentiation
* !Fixed serious bug which doesn't allow the freezetime at new_round
* +Added SpeedUP-Trail: Choose between FIRE or SMOKE which follow you as a trail while running at highspeed
*
* V0.6.1
* !Fixed a little bug with postition of special efx when stop running and continue running...
* !Fixed another bug with amx_speedup_sprite toggle...expected too much parameter for that toggle
*
* V0.7
* !Fixed a bug with playercount
* +Optimized the freezetime detection routine
*
* V1.0
* !Fixed a minor bug
* @Got approved and therefore changed Version to 1.0
*
* V1.1
* !Fixed a bug within deathmatch..if you respawned without a weapon the speed didn't changed--fixed
*
*
* Known Bugs:
* -NONE- as always ;)
*
*
* TODO:
* I thought about a bunnyhop feature...
* Adding possibility to switch modes between (instant on and on while key press)
* Adding a feature where the Field of View is changed upon an given speed(this is harder than i have thought)
* maybe someone make a suggestion for a feature!?
*
*
* Credits:
* p3tsin: For his codesniped in http://forums.alliedmods.net/showpos...5&postcount=10 (helped alot making "walking" possible)
* v3x & jtp10181: For their codesnipeds in http://forums.alliedmods.net/showthread.php?t=23942 (helped optimizing my plugin)
* VEN & emp`: For their suggestions and advice in my thread (helped clean up my code and learn to optimize it)
* and especially VEN for his TUTORIAL: http://forums.alliedmods.net/showthread.php?t=42159
* Bahrmanou: For his "plugin_trail.amxx" which gave me lots of hints how to do a trail
Prowler: For this nice thread: http://forums.alliedmods.net/showthread.php?t=31682
* http://wiki.alliedmods.net/Main_Page
* http://www.amxmodx.org/doc/
*
********************************************* **************************************/
.
.
!! FUN-Module required !!
!! FAKEMETA-Module required !!


If anyone does find a bug, let me know!

greetz regalis
.
Below is the sprite.zip which contains the two used sprites, for the smoke/dust-effekt and the fire sprite.
All views: ~372 times
Attached Files
File Type: zip sprites.zip (53.8 KB, 4128 views)
File Type: sma Get Plugin or Get Source (SpeedUP.sma - 6841 views - 21.1 KB)
__________________

Last edited by regalis; 06-01-2007 at 17:52. Reason: Version 1.1 uploaded - bug in deathmatch fixed
regalis is offline
 



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 08:00.


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