AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Deathrun Manager by xPaw v3.0.3 [13/02/2010] (https://forums.alliedmods.net/showthread.php?t=78197)

xPaw 09-29-2008 09:47

Deathrun Manager by xPaw v3.0.3 [13/02/2010]
 
14 Attachment(s)
http://i.imgur.com/VR4DV.jpg
Deathrun Manager
By xPaw

Logo by Kryzu

.: Description :.
Deathrun Manager for cs and cz, well you cant play deathrun in other games :)

This plugin manages your deathrun server by doing the following things:
Will automatically transfer one RANDOM person from the Counter-Terrorists team over to the Terrorists
Will turn off/on radio commands (with cvar)
Will turn off/on spraying (for those noobs who use spray on breakables)
Will restart round if no terrorist detected
Will check every 15 secs & on player disconnect (if a Terrorist disconnects then will restart round)
Will remove players weapons on new round.

Life System
You will gain one life point when you will kill enemy, This life point will be spend when you die.
.: Cvars :.
< 1 = on || 0 = off >

Turn on/off the plugin
deathrun_toggle 1/0 <default: 1>

Turn on/off the spray blocker
deathrun_spray 1/0 <default: 1>

Turn on/off the radio commands blocker
deathrun_radio 1/0 <default: 1>

Turn on/off giving USP for CT's
deathrun_giveusp 1/0 <default: 1>

Turn on/off removing buyzone
deathrun_removebz 1/0 <default: 1>

Turn on/off remove money and timer from hud
deathrun_hidehud 1/0 <default: 1>

Turn on/off blocking money, if yes, player always will have 0$
deathrun_blockmoney 1/0 <default: 1>

Block or enable 'kill' command for CTs (1 - blocked, 0 - enabled)
deathrun_blockkill 1/0 <default: 1>

Turn on/off the semiclip
deathrun_semiclip 1/0 <default: 1>

Turn on/off the life system, if set to 2, terrorist for winning team will get also 1 life point.
deathrun_lifesystem 2/1/0 <default: 1>

If 1 then gamename will be changed to 'Deathrun v3.0'
deathrun_gamename 1/0 <default: 1>

Turn on/off block no fall damage for terrorists
deathrun_terrnfd 1/0 <default: 1>
.: What included in my DRM? :.
  • Semiclip by danielkza
  • Remove BuyZones by VEN
  • Game NameChanger
  • Spray Blocker
  • Radio Commands Blocker
  • No Roundtimer & Money in HUD

.: Credits :.
  • Grim - Original code
  • coderiz - His tp fix plugin, used it for trigger_hurt.
  • danielkza - The Semiclip code
  • TeddyDesTodes - Original Life System idea.

.: Recommended Plugins :.
.: Changing Messages prefixes :.
The standart prefix for chat messages is [Deathrun], but you can change it. Line 23. Change [Deathrun] to what you want :)
PHP Code:

// Messages prefix
new const g_szPrefix[ ] = "[Deathrun]"

And recompile the plugin !
.: Changing Fake Player's Name :.
Line 20: Change DRM Fake Player to what you want :)
PHP Code:

// Bot name
new const g_szBotName[ ] = "DRM Fake Player"

And recompile the plugin !
.: Removing Fake Player :.
You simply need to comment line 17.

PHP Code:

#define FAKE_PLAYER 

to
PHP Code:

// #define FAKE_PLAYER 

And recompile the plugin, if you removed fakeplayer, do not complain about timeleft resets !!

xPaw 09-29-2008 11:06

Changelog
 
Changelog
"v5.0".applyValveTime()
  • ???
v3.0.3
  • Fixed life system cvar working wrong
  • Small optimization in semiclip code
v3.0.2
  • Fixed spraying at roundstart even when spray is blocked
v3.0.1
  • Fixed not-killing bot when lifes system was disabled
v3.0
  • Bot wont join anymore if on map only 1 spawn for terrs, prevent dying
  • Blocked death msg of fake player
  • Saved many memory in semiclip method, and in other parts too
  • Added 'No terrorists fall damage'
  • Added Thinking entity instead of task for terrorist checking
  • When radios is blocked, the menu doesnt show anymore
  • Fixed weapons pickuping, happened what you can't pickup weapons sometimes
  • Added define for bot, now you can disable it by commenting 1 line, read below
  • Added g_szPrefix, now you can change [Deathrun] easily, read below
Older versions

Howdy! 09-29-2008 11:19

Re: Deathrun Manager v1.0 [29/08/2008]
 
Another way of blocking radio commands

:wink:

Exolent[jNr] 09-29-2008 11:30

Re: Deathrun Manager v1.0 [29/08/2008]
 
1.
Code:
public client_connect(id)     set_user_info(id, "_vgui_menus", "0");
Instead, hook event "VGUIMenu" like you did "ShowMenu".


2.
Code:
public menuteam(id)     client_cmd(id, "slot2"); public menuclass(id)     client_cmd(id, "slot5");

Instead, block the other menus that you hooked with PLUGIN_HANDLED, and here, do:
Code:
public menuteam(id) {     engclient_cmd(id, "jointeam", "2");     engclient_cmd(id, "joinclass", "5");     return PLUGIN_HANDLED; public menuclass(id) {     engclient_cmd(id, "joinclass", "5");     return PLUGIN_HANDLED; }


3. Usually in DeathRun servers, the Terrorist is random for first round, then the Terrorist is the CT that kills the Terrorist. If no CT wins, then the Terrorist stays.
You should add a cvar to be random or to follow CT actions.

xPaw 09-29-2008 11:35

Re: Deathrun Manager v1.0 [29/08/2008]
 
2nd changed, 3nd i dont know will i add it or no
1st right i hooked ?
PHP Code:

    register_event("ShowMenu""menuclass""b""4&CT_Select""4&Terrorist_Select");
    
register_event("ShowMenu""menuteam""b""4&Team_Select_Spect""4&Team_Select""4&IG_Team_Select");
    
register_event("VGUIMenu""menuclass""b""4&CT_Select""4&Terrorist_Select");
    
register_event("VGUIMenu""menuteam""b""4&Team_Select_Spect""4&Team_Select""4&IG_Team_Select"); 

EDIT: maplebest sry i was boored and ill forgot to change

maplebest 09-29-2008 11:38

Re: Deathrun Manager v1.0 [29/08/2008]
 
Thank you.

xPaw 09-29-2008 11:40

Re: Deathrun Manager v1.0 [29/08/2008]
 
maplebest no problem, just forget

bickuribox 09-29-2008 13:32

Re: Deathrun Manager v1.0 [29/08/2008]
 
Thank you !!!

IneedHelp 09-29-2008 13:40

Re: Deathrun Manager v1.0 [29/08/2008]
 
Finally ! Good Job xPaw.

xPaw 09-29-2008 14:20

Re: Deathrun Manager v1.0 [29/08/2008]
 
@Howdy!: not all radio commands will blocked, check in mine code, there all console blocking too

SchlumPF* 09-29-2008 14:35

Re: Deathrun Manager v1.0 [29/08/2008]
 
"BLOCK_TEAMC = Tem wechseln ist auf diesem Server deaktiviert." in german translation should be
"BLOCK_TEAMC = Team wechseln ist auf diesem Server deaktiviert."

xPaw 09-29-2008 14:38

Re: Deathrun Manager v1.0 [29/08/2008]
 
thanks fixed

Exolent[jNr] 09-29-2008 15:30

Re: Deathrun Manager v1.0 [29/08/2008]
 
Quote:

Originally Posted by xPaw (Post 692597)
1st right i hooked ?
PHP Code:

    register_event("ShowMenu""menuclass""b""4&CT_Select""4&Terrorist_Select");
    
register_event("ShowMenu""menuteam""b""4&Team_Select_Spect""4&Team_Select""4&IG_Team_Select");
    
register_event("VGUIMenu""menuclass""b""4&CT_Select""4&Terrorist_Select");
    
register_event("VGUIMenu""menuteam""b""4&Team_Select_Spect""4&Team_Select""4&IG_Team_Select"); 


Look at my Team Join Management plugin to see how I detected ShowMenu and VGUIMenu team join menus.

xPaw 09-30-2008 11:57

Re: Deathrun Manager v1.0 [29/09/2008]
 
:S

grimvh2 09-30-2008 15:05

Re: Deathrun Manager v1.0 [29/09/2008]
 
hehe thx for credit

lead_theinvasion 10-01-2008 08:16

Re: Deathrun Manager v1.0 [29/09/2008]
 
Nice mod however a couple of things need to be fixed and I have a few suggestions:

[Deathrun] Changing team is not allowed at this server
You can't join any team whatsoever which meant I had to use Xolent's mod

Just a small one but annoying:
Translation error:
[Deathrun] <name> is now the Terrorists
Should be:
[Deathrun] <name> is now the Terrorist (no s for plural)

Just like SJ, the Terrorist should be stopped from suiciding at all costs especially after the CT have the gun.
So maybe theres a script to stop the "kill" command.

Maybe the T could be a T for say 3 rounds before it gets changed - would be good if the killer became the Terrorist too!

I hope the first problem especially gets fixed asap and those suggestions considered.

Other than that good job :)

Cheers.

xPaw 10-01-2008 08:22

Re: Deathrun Manager v1.0b [01/10/2008]
 
@lead_theinvasion: added suicide blocker & fixed the lang file ;)

YKH =] 10-01-2008 09:06

Re: Deathrun Manager v1.0b [01/10/2008]
 
Nice work !
+ karma

platEE 10-01-2008 09:31

Re: Deathrun Manager v1.0b [01/10/2008]
 
nom nom nom this is what i have been lookingfor!:up: :up:

lead_theinvasion 10-02-2008 04:00

Re: Deathrun Manager v1.0b [01/10/2008]
 
Is anyone else getting the join bug?

I can't join unless with the extra mod which I really don't want...

The server resets the timer when a new Terr is picked.
Can this be changed?

The_One_gamer 10-02-2008 16:19

Re: Deathrun Manager v1.0b [01/10/2008]
 
i'm getting the join bug too. and my players are getting kicked for overflowed reason. sometimes the plugin resets the round without any reasons.

lead_theinvasion 10-03-2008 22:04

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
When the Terrorist kills all the CT's the server can't find a new Terrorist and it restarts along with the map timer..

The_One_gamer 10-04-2008 08:37

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
i know, but sometimes, even if 2 or 3 cts are alive, the server restarts ? Oo

hleV 10-05-2008 05:55

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
Didn't read all thread but what about making a CVar to control how many poeple are transfered to Ts? Or maybe the number of Ts could depend on number of players in server? 1 T vs. 31 CT isn't fair you know...

ConnorMcLeod 10-05-2008 06:20

Re: Deathrun Manager v1.0b [01/10/2008]
 
Quote:

Originally Posted by The_One_gamer (Post 694196)
my players are getting kicked for overflowed reason.

PHP Code:

public eResetHUD(id) {
    if(!
is_user_bot(id)) {
        
message_beginMSG_ALLg_msgHideWeapon_id );
        
write_byte( (1<<1<<5) )
        
message_end()
    
        
message_beginMSG_ALLg_msgCrosshair_id );
        
write_byte)
        
message_end()
    }


It may help to use MSG_ONE instead of MSG_ALL.
It could also halp to replace all MSG_ONE with MSG_ONE_UNRELIABLE

Trafalete 10-05-2008 09:49

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
one small question...could someone explaine what this mod is about? all i've understood so far is that there is 1 T and everyone else is in the CT team with weapons...what is the T supposed to do?

zssz 10-06-2008 01:29

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
Quote:

Originally Posted by Trafalete (Post 695373)
one small question...could someone explaine what this mod is about? all i've understood so far is that there is 1 T and everyone else is in the CT team with weapons...what is the T supposed to do?

In deathrun_* maps, CT try to get to the end of the map to get weapons to kill T's. T's have to press buttons to activate "obstacles" to try and kill the CT's before they reach the end of the map. It's pretty fun, recently got into it and started to add deathrun maps/plugins to my server.


I like the plugin, only have 1 problem with it, whenever a new round starts, sometimes players spawn in each other and die. I have played this map without the plugin enabled and it's never happened before. Great idea, love the plugin and can't wait to see it's future updates!

lead_theinvasion 10-09-2008 05:19

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
Heaps of things still need to be fixed.

Example:
Random "No terrorist could be detected"

Stixsmaster 10-11-2008 12:21

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
Also, I noticed most of the times you fall off for any means necessary from the level and get killed by the world the plugin lots of the time will say sumthing like "Idiot killed self and didnt want to become terrist" so yea...

---Stixsmaster

benamo6 10-17-2008 08:18

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
You can add that if a terrorist win he stay at terrorist,
like if i win as a terrorist i stay as a terrorist until i loose or win 5 rounds somthing like that

koyumu 10-17-2008 09:49

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
Hi all

In deathrun_insane There is a platforme which moves and when we go above has some ,we loose hp

how ,fix it ?

thanks

xPaw 10-17-2008 10:05

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
use other semiclip

koyumu 10-17-2008 10:21

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
ok your plugin fix this bug ?

or can you give me a new semiclip ?

Thank you :)

xPaw 10-17-2008 10:59

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
this bug not from mine plugin.

koyumu 10-17-2008 11:04

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
yes i know i ask you : do you have semiclip in your plugin ? ^^

or can you give me one semiclip please?

Thanks

DruGzOG 10-17-2008 14:28

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
Try searching the forums for the semiclip you are looking for, their are about 10 semiclip plugins, compatiable with all mods, Try it out.... using the Search Button Located at the top right hand corner

http://forums.alliedmods.net/search.php

koyumu 10-17-2008 16:28

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
yes i know i test 3 semiclip and all bug :/

" In deathrun_insane There is a platforme which moves and when we go above has some ,we loose hp"

Xpaw, can you help me ?

thanks

xPaw 10-17-2008 16:34

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
1 Attachment(s)
use this one, works perfect on trains

koyumu 10-18-2008 06:54

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
thanks its ok now

benamo6 10-18-2008 07:58

Re: Deathrun Manager v1.1 beta1 [03/10/2008]
 
You can add that if a terrorist win he stay at terrorist,
like if i win as a terrorist i stay as a terrorist until i loose or win 5 rounds somthing like that


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

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