AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   [HL1] Crossbow Only (https://forums.alliedmods.net/showthread.php?t=332995)

facuarmo 06-13-2021 04:43

[HL1] Crossbow Only
 
1 Attachment(s)
This is a rather simple plugin part of the "gungame" category. Select any Half-Life 1 map and get a crossbow! Everything else is blocked, ammo is infinite.

You're allowed to use basic items, only those that aren't under the weapon_* category.

Screenshots

https://i.ibb.co/KDtq8JK/example0.png
https://i.ibb.co/dJKdSVJ/example1.png

Dependencies
  • Engine
  • Fun
  • FakeMeta
  • HamSandwich

Commands

This plugin doesn't support any command.

CVARs

This plugin doesn't support any CVARs.

Installation
  • Drop the plugin inside of your addons/amxmodx/plugins folder
  • Edit your plugins.ini (inside of addons/amxmodx/configs) and add its filename (amx_only_crossbow.amxx)
  • Restart your server or change the level to initialize it

Development

On its current stage, the plugin is completely stable and usable. Although it might become rather slow on small systems or heavily loaded servers and further testing might be necessary in order to meet the standards of older plugins.

If you're planning on contributing, passing "debug" next to the filename within plugins.ini will provide you most of the unhandled exceptions that might occur, however, if you want to go even further, you might as well just re-build the plugin enabling the constant "DEBUG" (check the source header for more information), which will provide you with server-side insights about each of the plugin operation steps.

Contributions

If you liked the plugin or you feel like there's anything to improve on or optimize, feel free to provide your suggestions or, better yet, submit a pull request to the repo at GitHub.

Credits

facuarmo 06-15-2021 20:49

Re: [HL1] Crossbow Only
 
Hey there everyone! So I've updated the plugin.

Here's a quick glance at what I've changed:
  • General code cleanup
  • Improvements on debugging output for developers
  • Fixed typos on the code
  • Switch to a safer weapon drop method
  • Optimize weapon drop handling
  • Improve the performance during player spawn
  • Fix broken drop handler (you wouldn't get a crossbow back if you dropped it)

For a more comprehensive list of changes and a side-by-side comparison, please check out this comparison at the GitHub repo.

Natsheh 06-15-2021 23:49

Re: [HL1] Crossbow Only
 
Why support one weapon when you can add support to everyweapon in halflife or out of halflife

facuarmo 06-15-2021 23:52

Re: [HL1] Crossbow Only
 
Quote:

Originally Posted by Natsheh (Post 2749889)
Why support one weapon when you can add support to everyweapon in halflife or out of halflife

Great question! Well, that's on the plans. I'm planning to allow for such thing through a menu and a combination of CVARs. For now though, it's just what I needed for my own server, it worked, users liked it, so I decided that I may as well just share it.

However, I shall say, it's a great suggestion nevertheless :).


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

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