-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
530 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#if defined _ru_crate_editor_included | ||
#endinput | ||
#endif | ||
#define _ru_crate_editor_included | ||
|
||
#define CRATE_NOT_FOUND -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#if defined _ru_crate_storage_included | ||
#endinput | ||
#endif | ||
#define _ru_crate_storage_included | ||
|
||
#define MAP_NAME_MAX_LENGTH 256 | ||
#define CRATE_ID_MAX_LENGTH 256 | ||
#define KV_KEY_POSITION "position" | ||
|
||
enum { | ||
X = 0, | ||
Y, | ||
Z, | ||
VECTOR_SIZE | ||
}; | ||
|
||
typedef KeyValuesCallback = function void (KeyValues kv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#if defined _ru_entity_included | ||
#endinput | ||
#endif | ||
#define _ru_entity_included | ||
|
||
#define ENTITY_NOT_FOUND -1 | ||
|
||
#define COLLISION_GROUP_IN_VEHICLE 10 | ||
#define COLLISION_GROUP "m_CollisionGroup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#if defined _ru_menu_included | ||
#endinput | ||
#endif | ||
#define _ru_menu_included | ||
|
||
#define RESPAWN_UNLOCKER "Respawn unlocker" | ||
|
||
#define ITEM_EDITOR_ENABLE "Enable editor" | ||
#define ITEM_EDITOR_DISABLE "Disable editor" | ||
#define ITEM_EDITOR_CRATE_ADD "Add crate" | ||
#define ITEM_EDITOR_CRATE_REMOVE "Remove crate" | ||
#define ITEM_CRATES_LOAD "Load crates" | ||
#define ITEM_CRATES_SAVE "Save crates" | ||
|
||
#define ADMIN_MENU "adminmenu" |
6 changes: 3 additions & 3 deletions
6
scripting/include/message.inc → scripting/include/ru/message.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#if defined _message_included | ||
#if defined _ru_message_included | ||
#endinput | ||
#endif | ||
#define _message_included | ||
#define _ru_message_included | ||
|
||
#define PREFIX "[Respawn unlocker] " | ||
#define PREFIX_COLORED "{fuchsia}[Respawn unlocker] " | ||
|
||
#define NO_CLIENT -1 | ||
#define CONSOLE 0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
scripting/modules/convar.sp → scripting/modules/console-variable.sp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
ConVar g_wallsEnabled = null; | ||
ConVar g_cratesEnabled = null; | ||
ConVar g_notificationsEnabled = null; | ||
static ConVar g_wallsEnabled = null; | ||
static ConVar g_cratesEnabled = null; | ||
static ConVar g_notificationsEnabled = null; | ||
|
||
void CreateConVars() { | ||
void Variable_Create() { | ||
g_wallsEnabled = CreateConVar("sm_respawnunlocker_walls", "1", "Enable (1) or disable (0) walls removing"); | ||
g_cratesEnabled = CreateConVar("sm_respawnunlocker_crates", "1", "Enable (1) or disable (0) crates adding"); | ||
g_notificationsEnabled = CreateConVar("sm_respawnunlocker_notifications", "1", "Enable (1) or disable (0) notifications"); | ||
} | ||
|
||
bool IsWallsEnabled() { | ||
bool Variable_IsWallsEnabled() { | ||
return g_wallsEnabled.IntValue == 1; | ||
} | ||
|
||
bool IsCratesEnabled() { | ||
bool Variable_IsCratesEnabled() { | ||
return g_cratesEnabled.IntValue == 1; | ||
} | ||
|
||
bool IsNotificationsEnabled() { | ||
bool Variable_IsNotificationsEnabled() { | ||
return g_notificationsEnabled.IntValue == 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
static ArrayList g_cratePositions = null; | ||
|
||
void CrateList_Create() { | ||
g_cratePositions = new ArrayList(VECTOR_SIZE); | ||
} | ||
|
||
void CrateList_Destroy() { | ||
delete g_cratePositions; | ||
} | ||
|
||
void CrateList_Clear() { | ||
g_cratePositions.Clear(); | ||
} | ||
|
||
int CrateList_Size() { | ||
return g_cratePositions.Length; | ||
} | ||
|
||
void CrateList_Get(int index, float position[VECTOR_SIZE]) { | ||
g_cratePositions.GetArray(index, position); | ||
} | ||
|
||
void CrateList_Add(float position[VECTOR_SIZE]) { | ||
g_cratePositions.PushArray(position); | ||
} | ||
|
||
void CrateList_Remove(int index) { | ||
g_cratePositions.Erase(index); | ||
} |
Oops, something went wrong.