Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[NMRiH] Weapon Configs (v1.0.0, 2018-12-12)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Brief
Customize No More Room in Hell's weapon stats and animation speeds. See below for all customizable properties.

This plugin re-creates a feature that used to be included in the Quality of Life plugin.

It requires DHooks with Dynamic Detours extension.
Features
Customize weapon behavior:
  • Damage (normal, headshot, shove and thrown)
  • Pushback chance (normal and headshot)
  • Stamina cost (shove and melee attack)
  • Shove cooldown time
  • Magazine capacity
  • Explosion radius of grenades and flare gun
  • Whether weapon can be used to suicide (gimmicky due to missing animations)
  • Whether weapon can perform skillshot (Linux servers only)

Customize weapon speeds:
  • Melee, shove and charged attack
  • Hip-fire and ironsight shooting
  • Reload, unload and ammo check
  • Maglite activation
  • Barricade speed, e-tool toggle
Example config
PHP Code:

"weapon_options"
{
    
// High-capacity, super revolver
    
"fa_sw686"
    
{
        
// Super damage
        
"damage" "500"
        "damage_headshot" "1000"
        "damage_shove" "25"

        
// High capacity
        
"capacity" "12"

        
// No cooldown between shots (shoot as fast as you can click)
        
"hip_fire_delay" "0"

        
// 2x faster ironsight shooting speed
        
"sight_fire" "2"

        
// 1.5x faster reload speed
        
"reload" "1.5"

        
// 4x faster ammo check speed
        
"check_ammo" "4"
    
}

    
// Faster, more agile knife
    
"me_kitknife"
    
{
        
// 6% faster charge-up and charge-release speed
        
"charge" "1.06"
        "release" "1.06"

        
// Time between attacks is 0.4 seconds
        
"quick_delay" "0.4"
        "release_delay" "0.4"
        "shove_delay"   "0.4"
        
        
// Charge attack can be unleashed after 0.1 seconds of charging
        
"charge_delay" "0.1"

        
// Throwing knife of death
        
"damage_thrown" "1000"
    
}


See 'addons/sourcemod/configs/weapon-configs-example.cfg' for more examples.
ConVars
  • sm_weapon_config - Name of active weapon configuration excluding the .cfg extension. Set to "" to disable weapon configs.

Weapon configs are relative to your nmrih/addons/sourcemod/configs folder.

Installation
  1. Install Metamod Source
  2. Install Sourcemod
  3. Install DHooks with Dynamic Detours extension
    • For Windows servers that use Sourcemod versions newer than 1.10.0.6225, download the DHooks-detours7 build attached to the bottom of this post
    • Otherwise download the latest build from its thread
  4. Download nmrih-weapon-configs.zip from below and extract it into your nmrih/addons directory

Credits
  • NMRiH dev team
  • Sourcemod crew
  • Drifter and Peacemaker for DHooks extension
  • rio for their suggestion on how to return a null CBaseEntity from DHooks

Changelog
1.0.0 - 2018-12-12
  • Re-release of original QOL system in separate plugin

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...