Skip to content

Commit

Permalink
Added More Features
Browse files Browse the repository at this point in the history
- Added Zombie + Classes
- Added Human + Classes
- Added Support for changes and fixes in 'ZExtract_Rounds'
- Added Infection Mode
- Added Buymenu
  • Loading branch information
DeclineD-Com-AMXX committed Feb 8, 2023
1 parent e69811d commit 1a0b346
Show file tree
Hide file tree
Showing 18 changed files with 2,881 additions and 152 deletions.
12 changes: 12 additions & 0 deletions Includes/zextract.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#if defined _zextract_included
#endinput
#endif
#define _zextract_included

#include <zextract_const>
#include <zextract_class_const>

#include <zextract_human>
#include <zextract_zombie>
#include <zextract_rounds>
#include <zextract_buymenu>
15 changes: 15 additions & 0 deletions Includes/zextract_buymenu.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#if defined _zextract_buymenu_included
#endinput
#endif
#define _zextract_buymenu_included

#include <zextract_buymenu_const>

forward ZEX_BuyAmmo_Item(id);
forward ZEX_BuyAmmo(id, item);
forward ZEX_BuyAmmo_Post(id, item);
forward ZEX_BuyItem(id, item);
forward ZEX_OpenBuymenu(id);
forward ZEX_OpenCategory(id, category);

native zex_register_item(const sysName[], const displayName[], cost, ammoCost, category);
43 changes: 43 additions & 0 deletions Includes/zextract_buymenu_const.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#if defined _zex_buymenu_const_included
#endinput
#endif
#define _zex_buymenu_const_included

#define GetMoney(%0) get_member(%0, m_iAccount)
#define SetMoney(%0,%1) set_member(%0, m_iAccount, %1)

#define MAX_ITEMS_CATEGORY 60

enum ItemRegisterData
{
any: IRD_SystemName,
any: IRD_Name,
any: IRD_Cost,
any: IRD_AmmoCost,
any: IRD_Category,
//any: IRD_Flags
}

enum _:CATEGORIES
{
CATEG_PISTOl,
CATEG_SHOTGUN,
CATEG_SUBMACHINE,
CATEG_SNIPER,
CATEG_ASSAULT,
CATEG_MACHINES,
CATEG_EQUIPMENT,
CATEG_KNIFE
}

enum Sort
{
Sort_Name,
Sort_Cost
}

enum SortDir
{
SRDir_Ascendent,
SRDir_Descendent
}
19 changes: 19 additions & 0 deletions Includes/zextract_class_const.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Sublime AMXX Editor v3.0.0-beta */

#if defined _zextract_class_const_included
#endinput
#endif
#define _zextract_class_const_included

enum MenuAvailable
{
MenuAvail_No, // Not available for use, intern use
MenuAvail_Flag, // Use resticting the players which don't have the required flags
MenuAvail_All, // For Everyone
}

enum Sex
{
Sex_Male,
Sex_Female
}
23 changes: 6 additions & 17 deletions Includes/zextract_const.inc
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
/* Sublime AMXX Editor v3.0.0-beta */

#if defined _zextract_const_included
#endinput
#endif
#define _zextract_const_included

/* ~(Restart)~ */
enum RsType
{
Rs_Not,
Rs_Round,
Rs_All
}
#define ZEXRet_Handled 80
#define ZEXRet_Supercede 81
#define ZEXRet_Continue 79

enum WinType
{
WIN_NONE = -1,
WIN_RESTART,
WIN_DRAW,
WIN_HUMAN,
WIN_ZOMBIE
}
#define is_bit(%1,%0) (%1 & (1<<%0))
#define set_bit(%1,%0) %1 |= (1<<%0)
#define remove_bit(%1,%0) %1 &= ~(1<<%0)
19 changes: 19 additions & 0 deletions Includes/zextract_human.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#if defined _zextract_human_included
#endinput
#endif
#define _zextract_human_included

#include <zextract_human_const>

forward ZEX_ToHuman(id)
forward ZEX_ToHuman_Post(id)

native zex_register_human(const Name[], const model[], Hp, Gravity, Speed, Sex: Gender, Jump, Flags, MenuAvailable:Menu_Available)
native bool: zex_is_human(id)
native zex_set_human(id, bool: human = true, bool: applyAttributes = true, bool: ignoreFlag = false)
native zex_get_human_class(id)
native zex_set_human_class(id, humanClass, bool: ignoreFlag)
native zex_get_next_human_class(id)
native zex_set_next_human_class(id, humanClass)
native zex_get_human_class_count()
native zex_get_human_class_info(humanClass, any:...)
20 changes: 20 additions & 0 deletions Includes/zextract_human_const.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#if defined _zerhuman_included
#endinput
#endif
#define _zerhuman_included

#define HumanSaveFile "ZExtractHumans.ini"

enum HumanRegisterData
{
any: HRD_SystemName,
any: HRD_Name,
any: HRD_Model,
any: HRD_Health,
any: HRD_Gravity,
any: HRD_Speed,
any: HRD_JumpVelocity,
any: HRD_Gender,
any: HRD_Flags,
any: HRD_MenuAvailable
}
23 changes: 23 additions & 0 deletions Includes/zextract_rounds.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* Sublime AMXX Editor v3.0.0-beta */

#if defined _zextract_round_included
#endinput
#endif
#define _zextract_rounds_included

#include <zextract_rounds_const>

forward ZEX_RoundEnd(Float:flDelay, WinType: reWin, RsType: rsRestart, const EndMessage[], const Sound[])
forward ZEX_RoundEnd_Pre(Float:flDelay, WinType: reWin, RsType: rsRestart, const EndMessage[], const Sound[])
forward ZEX_RoundStart()
forward ZEX_RoundStart2()
forward ZEX_RoundStart2_Post()
forward ZEX_WaitForPlayersEnd()

native zex_end_round(Float:flDelay, WinType: reWin, RsType: rsRestart, const EndMessage[], const EndSound[], bool: Trigger)
native bool: zex_round_ended()
native bool: zex_round_started()
native bool: zex_waiting_for_players()
native bool: zex_is_change_map()
native zex_can_change_map(bool: change)
native zex_set_round_end_info(RoundEndInfo: reiInfo, any:...)
29 changes: 29 additions & 0 deletions Includes/zextract_rounds_const.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* Sublime AMXX Editor v3.0.0-beta */

#if defined _zextract_rounds_const_included
#endinput
#endif
#define _zextract_rounds_const_included

/* ~(Restart)~ */
enum RsType {
Rs_Not,
Rs_Round,
Rs_All
}

enum WinType {
WIN_NONE = -1,
WIN_RESTART,
WIN_DRAW,
WIN_HUMAN,
WIN_ZOMBIE
}

enum RoundEndInfo {
REI_Delay,
REI_Win,
REI_Restart,
REI_Message,
REI_Sound
}
19 changes: 19 additions & 0 deletions Includes/zextract_zombie.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#if defined _zextract_zombie_included
#endinput
#endif
#define _zextract_zombie_included

#include <zextract_zombie_const>

forward ZEX_ToZombie(id, attacker);
forward ZEX_ToZombie_Post(id, attacker);

native zex_register_zombie(const Name[], const Model[], const ClawModel[], Hp, Gravity, Speed, Knockback, Sex: Gender, Jump, Flags, MenuAvailable:Menu_Available, const Dead_Sound1[], const Dead_Sound2[], const Hit_Sound1[], const Hit_Sound2[]);
native bool: zex_is_zombie(id);
native zex_set_zombie(id, bool: zombie = true, attacker = -1, bool: applyAttributes = true, bool: ignoreFlag = false);
native zex_get_zombie_class(id);
native zex_set_zombie_class(id, zombieClass, bool: ignoreFlag);
native zex_get_next_zombie_class(id);
native zex_set_next_zombie_class(id, zombieClass);
native zex_get_zombie_class_count();
native zex_get_zombie_class_info(zombieClass, any:...);
24 changes: 24 additions & 0 deletions Includes/zextract_zombie_const.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#if defined _zerzombie_included
#endinput
#endif
#define _zerzombie_included

#define ZombieSaveFile "ZExtractZombies.ini"

enum ZombieRegisterData
{
any: ZRD_SystemName,
any: ZRD_Name,
any: ZRD_Model,
any: ZRD_ClawModel,
any: ZRD_Health,
any: ZRD_Gravity,
any: ZRD_Speed,
any: ZRD_Knockback,
any: ZRD_JumpVelocity,
any: ZRD_Gender,
any: ZRD_DeadSound[2],
any: ZRD_HitSound[2],
any: ZRD_Flags,
any: ZRD_MenuAvailable
}
Loading

0 comments on commit 1a0b346

Please sign in to comment.