Raised This Month: $12 Target: $400
 3% 

[HL1] Crossbow Only


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
facuarmo
Junior Member
Join Date: Aug 2015
Old 06-13-2021 , 04:43   [HL1] Crossbow Only
Reply With Quote #1

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




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
Attached Files
File Type: sma Get Plugin or Get Source (amx_only_crossbow.sma - 111 views - 6.6 KB)

Last edited by facuarmo; 06-15-2021 at 20:45.
facuarmo is offline
facuarmo
Junior Member
Join Date: Aug 2015
Old 06-15-2021 , 20:49   Re: [HL1] Crossbow Only
Reply With Quote #2

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.
facuarmo is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-15-2021 , 23:49   Re: [HL1] Crossbow Only
Reply With Quote #3

Why support one weapon when you can add support to everyweapon in halflife or out of halflife
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
facuarmo
Junior Member
Join Date: Aug 2015
Old 06-15-2021 , 23:52   Re: [HL1] Crossbow Only
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
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 .

Last edited by facuarmo; 06-15-2021 at 23:55. Reason: Correct the first sentence
facuarmo is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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