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

Removed jumpdelay and higher strafe speed for Zombie Panic


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SS. Kommando
Member
Join Date: Oct 2005
Old 05-19-2006 , 15:08   Removed jumpdelay and higher strafe speed for Zombie Panic
Reply With Quote #1

Hi. I'm playing a game called Zombie Panic. I want a jumpdelay put in by the developers to be removed, and I also want a faster strafe speed - same as in HL1M. I would be very grateful if someone is willing to make such a plugin.

Zombie Panic's homepage: http://www.zombiepanic.org/
SS. Kommando is offline
noob cannon lol
SourceMod Donor
Join Date: Sep 2005
Old 05-19-2006 , 18:13  
Reply With Quote #2

As a quote from another coder in response to removing jump delay:
Quote:
Originally Posted by syphilis
I've tried this and it doesn't work for a few reasons. The person responsible for coding the mod broke the ON_GROUND flag, which lets you know if a player is on the ground. If the ability for another jump was added in, you cannot accurately check whether or not the player is in midair, and it would lead to UT style multijumping, which would of course lead to further map exploiting.
A workaround could be achieved by detecting when the player will be on ground again according to where a player would land, but that would be quite "hacky" and I'm not sure if it can be accomplished bug-free.

As for a faster strafe speed, you could try this, but I haven't tested it yet. There might be more efficient ways to achieve this, but I won't try any harder.
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <engine> #define PLUGIN "ZP Retro-Strafe Speed" #define VERSION "0.1" #define AUTHOR "noob cannon lol" new Float:g_fZombieForwardSpeed = 0.0 new Float:g_fSurvivorForwardSpeed = 0.0 public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     set_task(0.5, "get_zombie_forward_speed", 8162)  // im lazy orrr auto-adjust for other plugins     set_task(0.5, "get_human_forward_speed", 8163)  // im lazy orrr auto-adjust for other plugins } public get_zombie_forward_speed() {     for(new i = 1; i < 33; i++) // find a player who is zombie and is going forward     {         if(!is_user_connected(i))             continue         if(!is_user_alive(i))             continue         if(!(get_user_button(i) & IN_FORWARD))             continue                     if(get_user_team(i) == 2)         {             g_fZombieForwardSpeed = entity_get_float(i, EV_FL_speed) // get speed             remove_task(8162) //delete this task- we have found teh speed         }     } } public get_human_forward_speed() {     for(new i = 1; i < 33; i++) // find a player who is human and is going forward     {         if(!is_user_connected(i))             continue         if(!is_user_alive(i))             continue         if(!(get_user_button(i) & IN_FORWARD))             continue                     if(get_user_team(i) == 1)         {             g_fSurvivorForwardSpeed = entity_get_float(i, EV_FL_speed) // get speed             remove_task(8163) //delete this task- we have found teh speed         }     } } public client_PreThink(id) {     if(get_user_team(id) == 0) // stupid spectator         return PLUGIN_CONTINUE     switch(get_user_team(id))     {         case 1:         {             if(g_fSurvivorForwardSpeed == 0.0) // if forward speed is not established, return                 return PLUGIN_CONTINUE             if(get_user_button(id) & IN_MOVELEFT || IN_MOVERIGHT) // is he strafing?                 entity_set_float(id, EV_FL_speed, g_fSurvivorForwardSpeed) // if so, set speed         }         case 2:         {             if(g_fZombieForwardSpeed == 0.0) // if forward speed is not established, return                 return PLUGIN_CONTINUE             if(get_user_button(id) & IN_MOVELEFT || IN_MOVERIGHT) // is he strafing?                 entity_set_float(id, EV_FL_speed, g_fZombieForwardSpeed) // if so, set speed         }     }             return PLUGIN_CONTINUE }
noob cannon lol is offline
Send a message via AIM to noob cannon lol Send a message via MSN to noob cannon lol
SS. Kommando
Member
Join Date: Oct 2005
Old 05-19-2006 , 19:00  
Reply With Quote #3

Thanks for the response. I'll try it.
SS. Kommando 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 02:59.


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