Author Topic: WeaponLimiter  (Read 2321 times)

0 Members and 1 Guest are viewing this topic.

Offline Savage

  • Soldier
  • **
  • Posts: 155
WeaponLimiter
« on: November 28, 2015, 09:44:01 am »
Script Name: WeaponLimiter
Script Description: Script is disabling weapon from menu when it's amount will reach the limit.
Original Author(s): Savage
Compilation: Passed
Core Version: 2.7.9 (SC3)

Info:
* Keep your weapons menu open because the weapon you were using before death can be disabled due to limit and you will end with hands
* If onweaponchange event is triggered and your primary weapon is over the limit it will be swapped to secondary (if secondary is over limit hands will be forced as primary)
* Weapons IDs: http://wiki.soldat.pl/index.php/TWeapon.WType
* Flamer and Bow aren't implemented
* Let me know about bugs
* At the end of the script you will find weapons limits, all of them are set to 32 which is max possible amount

WeaponLimiter - Limit isn't divided between teams

Commands:
/wlim - show weapons amount/limit
/clim <wepid> <limit> - change weapon limit temporarily - until recompile (admin only)
/wids - check weapons IDs (admin only)

WeaponLimiterT - Limit is evenly divided between teams

Commands:
/wlim <teamid> - show weapons amount/limit (You can type only /wlim to check your team)
/tids - check teams IDs
/clim <wepid> <limit> - change weapon limit temporarily - until recompile (admin only)
/wids - check weapons IDs (admin only)
« Last Edit: March 27, 2021, 07:23:54 pm by Savage »

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: WeaponLimiter
« Reply #1 on: November 28, 2015, 10:04:48 am »
some of them aren't fixable

What do you mean?
Is there anybody can write script?
Good, go and play soldat ^^

Offline Savage

  • Soldier
  • **
  • Posts: 155
Re: WeaponLimiter
« Reply #2 on: November 28, 2015, 10:59:08 am »
Quickly added /wids command and some improvements.

some of them aren't fixable

What do you mean?

I mean Soldat bugs :D In 1.6.8 property WeaponActive wasn't working properly.

Offline %%%%%%%

  • Soldier
  • **
  • Posts: 205
Re: WeaponLimiter
« Reply #3 on: November 28, 2015, 01:29:32 pm »
Would definitely need to be evenly divided between teams

Offline Savage

  • Soldier
  • **
  • Posts: 155
Re: WeaponLimiter
« Reply #4 on: November 30, 2015, 10:00:27 am »
Changed a little WeaponLimiter and added WeaponLimiterT - Limit is evenly divided between teams.