Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

Grenades Drop + Ammo Control


  • 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:7178
  • Lokalizacja:AMXX.PL
Offline

Napisano 30.04.2016 12:59


Grenades Drop + Ammo Control 0.1
Release: 30.04.2016 | Last Update: 30.04.2016

Table of Contents
  • Description
  • Requirements
  • Installation
  • Cvars
  • Changelog
  • Downloads
Description top

I'll keep it short this time. With this plugin you can drop grenades(with "drop" command, like for any other weapon) and you can also control the max ammount of grenades that a player can use.

1.Grenades Drop features:

  • Drop grenades.
  • Make sure grenades are properly dropped.
  • For example, with other drop plugins you would get 2 grenades when picking just one.
  • Using game method & game functions, no useless entities are created.
2.Grenade Ammo features:
  • As you know, in CS you have have 1 HE/ 2 FL/ 1 SK
  • Now, you can choose how many grenades a player can buy/pickup via cvars.
  • All grenades are fully usable and no useless entities are created.

Requirements top

This doesn't require much special things, only:

  • Orpheu module.
  • A server without dproto.
    This is not generally needed, but I won't help you if you are running an outdated server with dproto. If you are experiencing problems, update your server/ fix the erros by yourself.

Installation top

To install the plugin:

  • Download the resources from this post.
  • Put grenade_dac.amxx in addons/amxmodx/plugins
  • Open addons/amxmodx/configs/plugins.ini and add at the end of this file grenade_dac.amxx
  • You can put the sma file into addons/amxmodx/sources but this is not mandatory.
  • Download the Grenade Drop + Ammo Control archive and copy everything from orpheu folder to server's orpheu folder.
  • Restart the server/change map.
To install orpheu:
  • Download orpheu_files-2.5.1.zip and extrat the arhive.
  • Copy orpheu_amxx.dll/orpheu_amxx_i386.so depending on your operation system into addons/amxmodx/modules
  • The module will be auto-loaded, you don't need to add it into modules.ini
To compile locally:
  • First way:
    • Download AMX Mod X for windows/linux from main site
    • Extract somewhere the arhive and remember the folder!
    • Copy the content from include folder from the orpheu arhive into addons/amxmodx/scripting/include( in the folder created in the step 2 ).
    • Download the source of the plugin( grenade_dac.sma) from this post and drag it over the compile.exe(scripting folder from the archive created at step 2)
    • It will create a new folder called compiled. Open it and you will find your compiled plugin( grenade_dac.amxx )
  • Second way:
    • Go to http://spider.limetech.org/
    • Copy/paste the code from the .sma file into the website.
    • Under the big blue Compile button you see a box which Drop .inc files here
    • Then press Compile and Download

Cvars top

  • max_flashbangs: max ammount of flashbangs that a player can have in his inventory. Default 2
  • max_hegrenades: max ammount of hegrenades that a player can have in his inventory. Default 1
  • max_smokegrenades: max ammount of smokegrenades that a player can have in his inventory. Default 1
  • drop_grenades: 1 - allow grenade drop | 0 - block grenade drop

ChangeLog top

  • V 0.1:
  • Initial release

Downloads <a href="#top">top

  • 0.1 version: will see

End Note:

This is pretty experimental, though I tested it and everything seems to work as intended. It does a lot of things that game is not made to do. I did my best to handle every case, but if you find any kind of bugs please report so I can fix them.
Code has some comments for explaining why some methods were choosed and not the others.
I have not tested in linux, but signatures look ok. If someone can check I would be glad.



Attached Files Dołączona grafikaGrenade Drop + Ammo Control.zip (11.0 KB) Dołączona grafikaGet Plugin or Get Source (grenade_dac.sma - 19.4 KB)

Wyświetl pełny artykuł




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

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