AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S/CS:GO] Deathrun (https://forums.alliedmods.net/showthread.php?t=125550)

selax 04-29-2010 16:07

[CS:S/CS:GO] Deathrun
 
2 Attachment(s)
Description
--------------------------------
Players must overcome all the traps and choose the ending, in which he will fight the choosens. Choosens must not allow players to pass map for that they have the ability to activate the trap. In case of failure, the choosens have to try to kill the players on the ending.

Supported Games
--------------------------------
  • Counter-Strike: Source (I recommend 1.x branch)
  • Counter-Strike: Global offensive (Work only in 2.x branch)

Links
--------------------------------
Features
--------------------------------
  • Score Bonuses. Gravitation, speed, health, color, model change, glow effect (smooth invisible to visible and visible to invisible change). Bonuses fully configurable.
  • Auto-Force. Automatic force player on join and when he change command.
  • Terrorist randomization. Automatic random terrorist selection every round. Fully configurable.
  • Auto-ban terrorist on disconnect. If terrorist disconnected he banned. Not ban if kick, timeout, etc. Full SourceBans support.
  • Scouts. Giving scouts for players without ammo. Fully configurable.
  • Save scores. Save scores if restart, etc.
  • Frag for win. If terrorist win he take a frag. If want you can enable for ct's.
  • Auto respawn. In default disabled. Respawn after X seconds after round start.
  • Auto round end. Round ended if time is 0:00 (Fixing).
  • Antisuicide for terrorist, multilang, fully configurable, and many other features.


Good plugins for deathrun
--------------------------------

Commands and Cvars
--------------------------------
Quote:

  • sm_deathrun_enabled. Enable or disable Deathrun Manager; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_autoforce. Enable or disable auto force players; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_antisuicide. Enable or disable antisuicide for terrorists; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_randomizing. Enable or disable randomizing players; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_randplayers. Number of randomizing players; default - 0.
  • sm_deathrun_randplayersteam. Randomizing players from team; 0 - all, 2 - terrorists, 3 - couter-terrorists; default - 3.
  • sm_deathrun_scouts. Enable or disable scouts module; 0 - disabled, 1 - enabled
  • sm_deathrun_scteam. Which team can get scouts?; 0 - all, 2 - terrorists, 3 - couter-terrorists
  • sm_deathrun_snum. Max scouts in round for all players; 0 - unlimited.
  • sm_deathrun_smax. Max scouts in round per player; 0 - unlimited.
  • sm_deathrun_fixfrags. Enable or disable frag fixing on death; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_bonuses. Enable or disable bonuses; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_bonuses_speed. Enable or disable bonus speed; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_bonuses_gravity. Enable or disable bonus gravity; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_bonuses_health. Enable or disable bonus health; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_bonuses_model. Enable or disable bonus model; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_bonuses_glow. Enable or disable bonus glow; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_bonuses_color. Enable or disable bonus color; 0 - disabled, 1 - enabled; default - 1.
  • sm_deathrun_savescores. Enable or disable save scores; 0 - disabled, 1 - enabled.
  • sm_deathrun_autoban. Enable or disable auto banning terrorist for disconnect; 0 - disabled, 1 - enabled.
  • sm_deathrun_autoban_time. Time for ban terrorist, in minutes; 0 - permanent.

Quote:

  • scout (in console), !scout and /scout (in chat). After write this command you get a scout withoit ammo.


Requirements
--------------------------------

bluechester 04-30-2010 01:41

Re: Deathrun Manager
 
Nice

selax 05-02-2010 09:34

Re: Deathrun Manager
 
Plugin updated to 1.3.3

{123} 05-02-2010 11:04

Re: Deathrun Manager
 
Класный плагин, спасибо)

I'mSane 05-02-2010 14:18

Re: Deathrun Manager
 
Надо добавить изменение цвета игрока в зависимости от кол-ва фрагов.

selax 05-03-2010 14:32

Re: Deathrun Manager
 
Quote:

Originally Posted by I'mSane (Post 1168017)
Надо добавить изменение цвета игрока в зависимости от кол-ва фрагов.

Уже есть в плагине, смотри внимательней.

Someone78 05-03-2010 18:30

Re: Deathrun Manager
 
понравилась функция выбора рандомного человека, не идеал но неплохо) у меня это было реализовано через array

но...
1. в OnGameFrame сувать проверку бонусов полнейшее извращение, сунуть это в player_spawn было бы лучше намного

2. какой смысл проверять GetConVarBool(deathrun_cfg_enabled) и GetConVarBool(deathrun_cfg_bonuses)
внутри for, но при этом clientfrags и Team создавать всего 1 раз, что за опять же извращенная оптимизация)

3. FindSendPropInfo("CBaseCombatWeapon", "m_iClip1") можно искать при OnPluginStart, эффект будет тот же

4. for (new i=1; i<=MAXPLAYERS; i++)
почему в одном месте MaxClients а в другом MAXPLAYERS?

5. можно юзать CS_TEAM_T и CS_TEAM_T подключив cstrike в include

6. вместо if(strcmp(text[startidx], "2", false) == 0) есть StringtoInt

7. в new PlayerList[MAXPLAYERS]; тоже можно юзать MaxClients, а вместо
Quote:

PlayerList[PlayerCount] = i;
PlayerCount++;
Quote:

PlayerList[PlayerCount++] = i;
8. еще можно %N юзать вместо GetClientName

ну и бонусы настраиваемые через файл

selax 05-04-2010 06:41

Re: Deathrun Manager
 
1. Это будет хуже намного, попробуй поставить гравитацию при player_spawn, а потом полазить на лестницах, увидишь неожиданный эффект. :)

3. Ой, а мы и не знали...
4. Захотелось, плагин на скорую руку писал.
5. Я знаю, но циферкой короче.
6. Справочником все умеют пользоваться
7. На скорую руку писал...
8. Это походу единственное чего я не знал.

Я же написал, что плагин будет переписан, эту версию я написал менее, чем за 20 минут, так как потерял нормальный исходник.
Я еще думаю перенести его на Си++.
Что это индусский код я и сам понимаю.

Someone78 05-04-2010 12:40

Re: Deathrun Manager
 
пробовал, и как ни странно работает без проблем) ставлю через SetEntityGravity :nono:

selax 05-05-2010 11:20

Re: Deathrun Manager
 
Quote:

Originally Posted by Someone78 (Post 1170325)
пробовал, и как ни странно работает без проблем) ставлю через SetEntityGravity :nono:

Ну гнать то тут не надо, это всем давно известный баг.


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

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