Skip to content

Custom weapons are forced into slot 1, position 2-6 instead of using free slots #18

@mrglaster

Description

@mrglaster

Description

When using five weapon plugins, they shift from slots 1-2 to 1-6.

[WEAPONMOD]: Warning: "weapon_javelin" is moved to slot 1-2.
[WEAPONMOD]: Warning: "weapon_ar2" is moved to slot 1-3.
[WEAPONMOD]: Warning: "weapon_paladin" is moved to slot 1-4.
[WEAPONMOD]: Warning: "weapon_displacer" is moved to slot 1-5.
[WEAPONMOD]: Warning: "weapon_tar21" is moved to slot 1-6.

However, the plugins source code specifies different slot assignments. Moreover, using weapons in slot 1-6 is problematic a bit, as the HUD fails to display properly. I was able to reproduce this bug on both Windows and Linux systems.

Linux configuration

Metamod:

Metamod-r v1.3.0.138, API (5:13)
Metamod-r build: 11:50:36 Nov 28 2023
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/5179c25

AMX MOD X:

   AMX Mod X version 1.10.0.5467 Copyright (c) 2004-2015 AMX Mod X Development Team 
   AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
   This is free software and you are welcome to redistribute it under 
   certain conditions; type 'amxx gpl' for details.

Weaponmod

[WEAPONMOD]: Start.
[WEAPONMOD]:  Version 0.1.0-dev.325+master.aef27e7 Linux
[WEAPONMOD]:   Found (null) at 0xf727e000
[WEAPONMOD]:   Found (null) at 0xf1b65000
[WEAPONMOD]:   Found hl.so at 0xf19ca000
[WEAPONMOD]:   Found ReHLDS API v3.14
[WEAPONMOD]:  Memory initialization ended.

Windows configuration

ReHLDS version: 3.14.0.0-dev
Metamod-r v1.3.0.149
Weaponmod: same version
Amx Mod X: 1.10.0.5467

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions