Page 1 of 1

gg_multi_level_remover

PostPosted: Sun Apr 04, 2010 6:16 pm
by Warren
gg_multi_level_remover

Description:
Registers the server command "stop_multi_levelers" to end gg_multi_level bonuses for all players.

Implementation:
This is will most commonly be implemented in 1v1 knife fight scripts to make sure that neither player has a speed advantage, and to stop the music.

In this case, add this line to your knife fight script at the start of the fight:
EventScripts Shell:
    stop_multi_levelers
EventScripts Python:
    es.server.queuecmd("stop_multi_levelers")
SourceMod:
    ServerCommand("stop_multi_levelers");

Remember, if your addon is written for SourceMod, you must re-compile it.

Installation:
  • Extract this file to your server
  • Restart your server or reload GunGame
  • Edit the newly appeared ../cfg/gungame51/custom_addon_configs/gg_multi_level_remover.cfg
  • Restart your server, reload GunGame, or run rcon gg_multi_level_remover 0 then rcon gg_multi_level_remover 1
gg_multi_level_remover.zip
(2.92 KiB) Downloaded 2094 times

PostPosted: Mon Apr 05, 2010 3:03 am
by tnarocks
Ok i added this addon to my servertoday. Im running Knifep3n and not sure which file to edit so that i can add the line to it to get it to work?

Re:

PostPosted: Mon Apr 05, 2010 3:08 am
by Warren
tnarocks wrote:Ok i added this addon to my servertoday. Im running Knifep3n and not sure which file to edit so that i can add the line to it to get it to work?

http://screencast.com/t/NTc1MmFhOTc

PostPosted: Mon Apr 05, 2010 6:06 am
by tnarocks
Lets say that I am running version 4.6.3c what do i edit then? Cause in that version there is no knifep3n.py?

PostPosted: Mon Apr 05, 2010 8:31 pm
by Warren
You'll have to paste whatever file you are using to handle knfep3n, and put these tags around it:
[code][/code]

Re: gg_multi_level_remover

PostPosted: Mon Apr 05, 2010 9:15 pm
by tnarocks
http://addons.eventscripts.com/addons/d ... SchuMod/26 thats the version that i am using and not sure which file to edit

PostPosted: Mon Apr 05, 2010 11:21 pm
by Warren
I have added an example for ESS scripts, like your version of knifep3n.

http://screencast.com/t/NjdlOTMyMTQ

PostPosted: Mon Apr 05, 2010 11:39 pm
by tnarocks
thanks sir it works great

Re: gg_multi_level_remover

PostPosted: Tue Apr 06, 2010 6:35 am
by PabloP
Well when you get time if you could also let me know where to put that for Knifefight for sourcemod

http://forums.alliedmods.net/showthread ... knifefight

I tried to do it myself but really couldn't decide where to put that line.. i didn't want to screw it up.. and i thought it would be a long shot to be able to test it very efficiently

But sounds like an excellent idea to keep some people from their pissed off state when they get knifed by a super fast guy..

PostPosted: Tue Apr 06, 2010 11:44 am
by Warren

PostPosted: Wed Apr 07, 2010 12:23 am
by PabloP
Thanks :]

PostPosted: Sat Apr 17, 2010 3:22 am
by PabloP
So i did as above (double checked it was right)

It works as far as stopping the speed bonus.
But it doesn't stop the music which is very annoying as we have a knife fight song playing.
Also doesn't change gravity or sparks which isn't much of an issue.

Re:

PostPosted: Sat Apr 17, 2010 5:10 pm
by Warren
PabloP wrote:So i did as above (double checked it was right)

It works as far as stopping the speed bonus.
But it doesn't stop the music which is very annoying as we have a knife fight song playing.
Also doesn't change gravity or sparks which isn't much of an issue.

That's because your knife fight addon is setting the players' speeds to normal. It sounds like you must not be properly firing stop_multi_levelers.

Re: gg_multi_level_remover

PostPosted: Sat Apr 17, 2010 10:43 pm
by PabloP
Yeah that makes sense.

I'm stuck though i have gg_multi_level_remover 1

and put the code in exactly like you showed.

thats as far as my knowledge can take me :[

PostPosted: Sat Apr 17, 2010 11:10 pm
by Warren
If your addon is written for SourceMod, you must re-compile it.

Re: gg_multi_level_remover

PostPosted: Sat Apr 17, 2010 11:57 pm
by PabloP
:] thank you

Re: gg_multi_level_remover

PostPosted: Sat Jan 08, 2011 2:42 pm
by tnarocks
Will this addon also stop them if they have to levels and buylevel a level to get the triple speed to knife someone or would that be a Different Plugin?

PostPosted: Fri Apr 29, 2011 8:25 pm
by tnarocks
ok i added this to my knife addon and when i tried to compile it this is the error that i get for it.

/home/groups/sourcemod/upload_tmp/php938q3n.sp(25) : fatal error 120: cannot read from file: "knifefight/chat.h"