Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dronelektron committed Jun 29, 2023
2 parents afb21b0 + 6e5a469 commit efed707
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripting/entity-manager.sp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
#include "modules/use-case.sp"
#include "modules/visualizer.sp"

#define AUTO_CREATE_YES true

public Plugin myinfo = {
name = "Entity manager",
author = "Dron-elektron",
description = "Allows you to perform various actions with objects at the beginning of the round",
version = "2.0.0",
version = "2.0.1",
url = "https://github.com/dronelektron/entity-manager"
};

Expand All @@ -39,7 +41,7 @@ public void OnPluginStart() {
AdminMenu_Create();
Event_Create();
LoadTranslations("entity-manager.phrases");
AutoExecConfig(true, "entity-manager");
AutoExecConfig(AUTO_CREATE_YES, "entity-manager");
}

public void OnMapStart() {
Expand All @@ -49,6 +51,7 @@ public void OnMapStart() {
UseCase_UpdateEntitiesFromMap(PROP_PHYSICS);
UseCase_UpdateEntitiesFromMap(PROP_PHYSICS_MULTIPLAYER);
UseCase_LoadEntities(CONSOLE);
UseCase_ApplyActionToEntities();
}

public void OnAdminMenuReady(Handle topMenu) {
Expand Down

0 comments on commit efed707

Please sign in to comment.