Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[CSS] Gun Menu - A Pawn only (smx) interpretation of CSS:DM


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 14.11.2011 08:06

Description
Provides a menu to choose weapons. Once choosen the weapons are automatically given at respawn.
The avaible weapons are configurable (see configuration below). The menu also provides a choice
of no gun or random. Bots are given the same items as players and random guns.

The plugin can also be configured to give health, armor, helmet, flashbangs, smokegrenade, hegrenade,
defusekits, and nightvision at spawn. C4 pickup can be disabled. A configurable sound is played when
when a player scores.

Servers using this mod: http://www.game-moni....ersion&num=100

Installation:
Place compiled plugin (sm_gunmenu.smx) into the plugins folder.
Place the configuration file (gunmenu.ini) into the config folder.
Changes to gunmenu.ini are read at map/plugin load time.

Complimentary Plugins:
Ammo Replenishment Lite
Deathmatch Lite Respawn

Problems, Bug Reports, Feature Requests, and Compliments:
Please send me a private message at http://forums.allied....=newpm&u=46596
Include a detailed description of how to reproduce the problem. Information about your server,
such as dedicate/listen, platform (win32/linux), game, and ip address may be useful.

I prefer to keep the plugin thread cleared so people don't have to wade through pages of fodder.
The community will be given a chance to address any bug reports that are posted in the plugin thread.
If you want a direct response from me, send a private message.

Compliments are always welcomed in the thread.

Background:
This plugin was inspired by these objectives:
  • Code 100% SourcePawn - Accessible to more programmers
  • No custom gamedata - If SourceMod works, then this plugin works
  • Stand alone modules - Only install what you need
Much gratitude towards Bailopan and crew for creating the original CSS:DM
plugin before there was SourceMod, and for developing SourceMod and SourcePawn.

Files:
  • cstrike/addons/sourcemod/plugins/sm_gunmenu.smx
  • cstrike/addons/sourcemod/configs/gunmenu.ini
  • cstrike/cfg/server.cfg
Commands:
sm_guns and sm_gunmenu - When enabled, presents player with menus to choose primary and secondary weapons

Gun Menu Configuration (Change in gunmenu.ini):
Configuration is specified as key values in the gunmenu.ini file.
There are four sections:
  • Settings - frag_sound (relative to sound), allow_c4 (yes/no), buy_zones (yes/no)
  • SpawnItems - health (0 no change), armor (0 no change), helmet (yes/no),
    flashbangs (yes/no), smokegrenade (yes/no), hegrenade (yes/no),
    defusekits (yes/no), nightvision (yes/no)
  • PrimaryMenu - classname and menu text ("weapon_g3sg1" "D3/AU-1")
  • SecondaryMenu - classname and menu text ("weapon_fiveseven" "ES Five Seven")
Server Configuration Variables (Change in server.cfg):
  • mp_fraglimit - Set this to score need to win map
  • mp_ignore_round_win_conditions - Set this to prevent round end
To-Do:
  • Knife steal
  • Free For All plugin
  • Other suggestions?
Changelog:
Code: 1.0 <-> 2011 - 11/13 LumiStance
Add code to close menu if player spectates
Add code to prevent spectators from opening menu
Add code to set bots to random guns
Consolidate Configuration Sections
Homogenize Error Messages
Remove Options Menu stubs
0.9 <-> 2011 - 10/17 LumiStance
Add code to strip Nades
Removed quantity option for Flashbangs
Cleanup entity removal code
Modify GivePrimary and GiveSecondary to retrieve weapon index
Add code to handle late load
0.8 <-> 2011 - 07/01 LumiStance
Add code to limit Defuser to CT
Add code to strip bomb on pickup (configurable)
Add code to prevent spectators from getting guns
Add SetFailState for entity member offsets
0.7 <-> 2011 - 06/28 LumiStance
Improve client_index validation in Event_HandleSpawn
Fix IsFakeClient() placement in Event_PlayerDeath
0.6 <-> 2011 - 06/24 LumiStance
Add code to remove buy zones
Add code to give/set Health, Nades, Night Vision, etc.
Add frag sound
Add code to nuke menus OnPluginEnd
0.5 <-> 2011 - 06/23 LumiStance
Public beta release
Develop Ammo Clip Refill on Kill
Move Refill and Restock into stand alone plugin
0.4 <-> 2011 - 03/25 LumiStance
Add code to only load config file and rebuild menus if timestamp changed
Moved 'None' weapon choice to end of menu
Add Reserve Ammo Replenishment and configuration
Made Configuration Section Titles case insensitive
0.3 <-> 2011 - 02/09 LumiStance
Fix range checking
0.2 <-> 2011 - 01/04 LumiStance
Remember Selection
Separate primary and secondary arrays
Implement Random and None Weapons
Range checking on selections, Announce
0.1 <-> 2011 - 01/03 LumiStance
Initial Menu
Attached Files Dołączona grafika Get Plugin or Get Source (sm_gunmenu.sp - 20.5 KB) Dołączona grafika gunmenu.ini (1.7 KB)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych