Half-Life Weapon Mod
Half-Life Weapon Mod
File Information
- Author RoboCop
- Uploaded 9th October 2016, 12:38 PM
- Last Updated 9th October 2016, 12:39 PM
- Category AMX Mod X
- Total Downloads 29
Files
- weaponmod_amxx.zip 155.0 KB
Author: KORD_12.7
Version: 0.8
Description:
Supporeted mods:
Weapons Limit:
How to use?
Installation
Eextract archive to your amxmodx folder on the server (with file overwriting if needed).
Note: Do not enable this module via addons/amxmodx/configs/modules.ini folder otherwise its can working incorrectly.
Configuration
All configuration files are in amxmodx/configs/weaponmod folder. Main configuration file is weaponmod.ini. In main file you can set weapon and ammo blocking (stripping), and also set startup equipment on spawn. You can preset any configs for certain maps. Exp. crossfire map configuration file must have following name: weaponmod-crossfire.ini
Detailed description about weaponmod.ini file:
The configuration file has 3 sections: equipment, ammo and block.
In amxmodx/configs/weaponmod/spawnpoints folder you can find configuration for weapon and ammo spawning on the maps. You can easy add any weapons/ammo to the map with WeaponMod Spawner Config Editor plugin.
In amxmodx/configs/weaponmod/mods folder you can find weaponmod configuration (offsets,signatures etc.).
Weapons:
Opposing Force:
Team Fortress Classic:
Unreal Tournament:
Counter-Strike Online:
Other:
Config Editor:FAQ
Q: Where is source code?
A: Here: https://svn.aghl.ru:8443/svn/HLModules/weaponmod/trunk
Q: How to download those sources?
A: You can do this with any SVN client, Tortoise SVN for example.
Q: How to install new weapons?
A: This is easy. Lookup for needed gun in upper text, download it and install on your server, like a typical amxx plugin.
Q: Im installed new weapons, but how to spawn them on maps?
A: Use WeaponMod Spawn Config Editor plugin.
Q: Server crashing with Host_Error: no precache: models/w_bgrap.mdl error.
A: Update your Weaponbox Models plugin.
Q: Why bots doesnt using new weapons?
A: Bots using new weapons if they have crowbar in theirs inventory (weapon_crowbar).
Q: Why my server is crashing with ED_Alloc: No edicts yet error?
A: Do not enable this module via amxmodx\configs\modules.ini.
</i>Credits:
Changelog:
Changelog <input value="Show" type="button" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;">
Version: 0.8
Description:
With this module you can write some plugins, that add new types of weapon and ammo to Half-Life.
Create new weapon by your self. You need only a basic knowledge of the AMXX scripting. Its easy.
Create new weapon by your self. You need only a basic knowledge of the AMXX scripting. Its easy.
Supporeted mods:
- Half-Life (its recommended to use Bugfixed and improved HL release)
- Opposing Force
- Adrenaline Gamer
- Adrenaline Gamer Mini
Weapons Limit:
- Default: 17
- With default weapons replacing: 31
How to use?
Installation
Eextract archive to your amxmodx folder on the server (with file overwriting if needed).
Note: Do not enable this module via addons/amxmodx/configs/modules.ini folder otherwise its can working incorrectly.
Configuration
All configuration files are in amxmodx/configs/weaponmod folder. Main configuration file is weaponmod.ini. In main file you can set weapon and ammo blocking (stripping), and also set startup equipment on spawn. You can preset any configs for certain maps. Exp. crossfire map configuration file must have following name: weaponmod-crossfire.ini
Detailed description about weaponmod.ini file:
The configuration file has 3 sections: equipment, ammo and block.
[equipment]
Here you can setup startup equipment for players. Syntax:
Code:
classname : amount
Example:
Code:
[equipment]
weapon_sporelauncher : 1
ammo_spore : 5
weapon_9mmAR : 1
item_longjump : 1
Players has Spore Launcher with 5 spores, also MP5 and LongJump module on every spawn.
[ammo]
This section can configure spawn amount of ammo for each weapons. Syntax:
Code:
ammo name : amount
Example:
Code:
9mm : 250
uranium : 100
556 : 200
762 : 15
Player has 250 bullets for MP5 and Glock17, 100 uranium for gauss and egon, and also 200 bullets for M249 and 15 for M40A1.Ammo names for default weapons:What about custom weapons ammo names? You can found theirs name in source code. Just lookup for following:
- 357 - python .357 revolver.
- 9mm - Glock17, Mp5.
- ARgrenades - MP5 assault grenades.
- bolts - crossbow.
- buckshot - shotgun.
- Hand Grenade - hang grenades.
- Hornets - hornetgun.
- uranium - tau cannon, egon.
- rockets - RPG.
- Satchel Charge - Satchels.
- Snarks - Snarks.
- Trip Mine - Trap Mines.
Code:
#define WEAPON_PRIMARY_AMMO "rockets_rpg7"
#define WEAPON_SECONDARY_AMMO "" // NULL
We see rocket_rpg7, its ammo name for RPG7 weapon.
[block]
In this section you can block/remove default weapons and ammo in HL. This means that any weapons in this section will be removed from the game and we cant use them. Any remove default weapon increasing weaponmod weapons limit. Exp. we can remove tau cannon and replace this with RPG-7:
Code:
[block]
weapon_gauss
In amxmodx/configs/weaponmod/spawnpoints folder you can find configuration for weapon and ammo spawning on the maps. You can easy add any weapons/ammo to the map with WeaponMod Spawner Config Editor plugin.
In amxmodx/configs/weaponmod/mods folder you can find weaponmod configuration (offsets,signatures etc.).
Weapons:
Opposing Force:
- M249: Squad Automatic Weapon
- M40A1: Sniper Rifle
- Spore Launcher
- Shock Roach
- Barnacle Grapple
- Combat Knife
Team Fortress Classic:
Unreal Tournament:
Counter-Strike Online:
Other:
Q: Where is source code?
A: Here: https://svn.aghl.ru:8443/svn/HLModules/weaponmod/trunk
Q: How to download those sources?
A: You can do this with any SVN client, Tortoise SVN for example.
Q: How to install new weapons?
A: This is easy. Lookup for needed gun in upper text, download it and install on your server, like a typical amxx plugin.
Q: Im installed new weapons, but how to spawn them on maps?
A: Use WeaponMod Spawn Config Editor plugin.
Q: Server crashing with Host_Error: no precache: models/w_bgrap.mdl error.
A: Update your Weaponbox Models plugin.
Q: Why bots doesnt using new weapons?
A: Bots using new weapons if they have crowbar in theirs inventory (weapon_crowbar).
Q: Why my server is crashing with ED_Alloc: No edicts yet error?
A: Do not enable this module via amxmodx\configs\modules.ini.
</i>Credits:
AMXX Dev Team - for great scripting engine.
Arkshine - for support and helping .
6a6kin - for AntiJos module source code.
GordonFreeman - for help with testing.
Koshak - for support and testing.
Lev - for constant support.
noo00oob - idea.
Valve - for awesome game Half-Life and SDK.
Arkshine - for support and helping .
6a6kin - for AntiJos module source code.
GordonFreeman - for help with testing.
Koshak - for support and testing.
Lev - for constant support.
noo00oob - idea.
Valve - for awesome game Half-Life and SDK.
Changelog:
Changelog <input value="Show" type="button" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;">
0.1 Alpha
0.2 Alpha
0.3 Beta
0.4
- First release.
0.2 Alpha
Fixed:
- Autoloading feature.
- Module is no longer required mvscr100.dll.
0.3 Beta
Added:
- Support for Bugfixed and improved HLSDK.
- Item spawning from BSP file.
- Version cvar.
- Support for cheat command "impulse 101".
0.4
Added:
- Item spawning from ini file. [addons/amxmodx/configs/weaponmod/]
- Some offsets for natives.
Fixed:
- Wrong model size for items. ("unable pickup" problem)
0.5
0.6
0.7
Added:
- Addtional offsets, where you can store your data.
- Code:
Offset_iuser1,
Offset_iuser2,
Offset_iuser3,
Offset_iuser4,
Offset_fuser1,
Offset_fuser2,
Offset_fuser3,
Offset_fuser4
// you can also use this offsets for custom entities ("info_target")
- Code:
- New natives:
- Code:
/**
* Get player's ammo inventory.
*
* @param iPlayer Player id.
* @param szAmmoName Ammo type. ("9mm", "uranium", "MY_AMMO" etc..)
*
* @return Amount of given ammo. (integer)
*/
native wpnmod_get_player_ammo(const iPlayer, const szAmmoName[]);
/**
* Set player's ammo inventory.
*
* @param iPlayer Player id.
* @param szAmmoName Ammo type. ("9mm", "uranium", "MY_AMMO" etc..)
* @param iAmount Ammo amount.
*/
native wpnmod_set_player_ammo(const iPlayer, const szAmmoName[], const iAmount);
- Code:
- Now you can use wpnmod_set_think for custom entities created through "info_target" method.
- New hook - Fwd_Wpn_AddToPlayer.
0.6
Added:
- Linux support.
- Natives:
- wpnmod_set_touch
- wpnmod_clear_multi_damage
- wpnmod_apply_multi_damage
- "give" command support.
- beams.inc include.
Fixed:
- Teamplay bug.
- "mp_weaponstay" bug, now works fine.
0.7
Added:
- Support for following mods:
- Opposing Force
- Adrenaline Gamer
- Adrenaline Gamer Mini
- Configuration system.
- Full 1nd view spectator support.
- Automatic redirection employed slots for guns.
- Option for blocking standart weapons and ammobox and replace them with new.
- Weapon limit increased to 17 (with full standart weapon blocking this value is increasing to 31).
- Added equipment manager that allows you too manage startup weapons and ammo for players from spawn.
- New hook: Fwd_Wpn_AddToPlayer2
- Natives:
- wpnmod_decal_trace
- wpnmod_get_damage_decal
- wpnmod_set_anim_ext
- wpnmod_get_anim_ext
- wpnmod_get_weapon_info
- wpnmod_get_ammobox_info
- wpnmod_get_weapon_count
- wpnmod_get_ammobox_count
- wpnmod_explode_entity
- wpnmod_fire_timed_grenade
- wpnmod_fire_contact_grenade
- wpnmod_radius_damage2
Fixed:
- Fixed 31 indexed weapon registration.
- "give" command now work correctly with "sv_cheats 0"
0.8
Added:
- Refactoring and some code tweaks.
- Added support for latest server build.
- New hook: Fwd_Wpn_ItemPostFrame.
- New natives:
- wpnmod_trace_texture
- wpnmod_get_offset_cbase
- wpnmod_set_offset_cbase
- Now you can reset think/touch forward for wpnmod_set_[think/touch] natives.
- Custom nades with high velocity now apply more damage for victims, like as defaults.
- Updated beams.inc include to 1.2 version.
- Added equipment manager that allows you too manage startup weapons and ammo for players from spawn.
Fixed:
- Incorrect parsing of vtable signatures in configs.
- Fixed wpnmod_get_weapon_info native.