Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
sourcemod
empfun
Commits
9b799255
Commit
9b799255
authored
Apr 25, 2020
by
Mikleo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
e75bb7b5
Pipeline
#9516
passed with stages
in 13 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
dist/addons/sourcemod/plugins/empfun.smx
dist/addons/sourcemod/plugins/empfun.smx
+0
-0
dist/addons/sourcemod/scripting/empfun.sp
dist/addons/sourcemod/scripting/empfun.sp
+13
-2
dist/updater.txt
dist/updater.txt
+1
-1
No files found.
dist/addons/sourcemod/plugins/empfun.smx
View file @
9b799255
No preview for this file type
dist/addons/sourcemod/scripting/empfun.sp
View file @
9b799255
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#include <SteamWorks>
#include <SteamWorks>
#define PluginVersion "1.0
5
"
#define PluginVersion "1.0
6
"
float pVersion;
float pVersion;
// note linearmap field is unstable
// note linearmap field is unstable
...
@@ -4396,6 +4396,18 @@ SaveEntity(int entity,KeyValues kv,any[] classInfo,char[] className)
...
@@ -4396,6 +4396,18 @@ SaveEntity(int entity,KeyValues kv,any[] classInfo,char[] className)
strcopy(className,32,"emp_building_nf_refinery");
strcopy(className,32,"emp_building_nf_refinery");
else
else
strcopy(className,32,"emp_building_imp_refinery");
strcopy(className,32,"emp_building_imp_refinery");
// if commander placed refinery and doesent have a default target // add one.
char targetName[32];
GetEntPropString(entity, Prop_Data, "m_target", targetName,sizeof(targetName));
if(strlen(targetName) == 0)
{
FindClosestResourcePoint(position,targetName);
SetEntPropString(entity, Prop_Data, "m_target", targetName,sizeof(targetName));
}
}
}
...
@@ -4974,7 +4986,6 @@ int findEntityWithHammerID(int hammerID,char [] className)
...
@@ -4974,7 +4986,6 @@ int findEntityWithHammerID(int hammerID,char [] className)
int FindClosestResourcePoint(float position[3], char [] pointName)
int FindClosestResourcePoint(float position[3], char [] pointName)
{
{
int ent;
int ent;
...
...
dist/updater.txt
View file @
9b799255
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
{
{
"Version"
"Version"
{
{
"Latest" "1.0
5
"
"Latest" "1.0
6
"
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment