Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
empfun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sourcemod
empfun
Commits
404e9c79
Commit
404e9c79
authored
Sep 21, 2020
by
Mikleo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed baseswap bugs introduced in previous version.
parent
48cc3440
Pipeline
#10892
passed with stages
in 14 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
11 deletions
+22
-11
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
+18
-10
dist/scenarios/entdata.txt
dist/scenarios/entdata.txt
+3
-0
dist/updater.txt
dist/updater.txt
+1
-1
No files found.
dist/addons/sourcemod/plugins/empfun.smx
View file @
404e9c79
No preview for this file type
dist/addons/sourcemod/scripting/empfun.sp
View file @
404e9c79
...
...
@@ -10,7 +10,7 @@
#include <SteamWorks>
#define PluginVersion "1.2
2
"
#define PluginVersion "1.2
3
"
float pVersion;
// note linearmap field is unstable
...
...
@@ -4138,6 +4138,7 @@ bool LoadScenario(int client,char[] filename)
float version = kv.GetFloat("version");
LoadCvars(kv);
int hLimit = kv.GetNum("hLimit",BASEHAMMERID -1 );
kv.JumpToKey("Entities");
...
...
@@ -4685,6 +4686,8 @@ RestoreEntity(int entity,KeyValues kv,any[] classInfo ,char[] className)
entity = CreateEntityByName(className);
}
}
if(entity == -1)
...
...
@@ -5973,12 +5976,19 @@ SwitchFactionString(char[] rString,int rStringSize)
ReplaceString(rString, rStringSize, "/Imperial/", "/NF/", true);
}
if(ReplaceString(rString, rStringSize, "nf", "imp", true) == 0)
{
ReplaceString(rString, rStringSize, "imp", "nf", true);
}
bool foundTeam = false;
if(ReplaceString(rString, rStringSize, "_nf", "_imp", true) > 0)
foundTeam = true;
if(ReplaceString(rString, rStringSize, "nf_", "imp_", true) > 0)
foundTeam = true;
if(foundTeam)
return;
return false;
ReplaceString(rString, rStringSize, "_imp", "_nf", true);
ReplaceString(rString, rStringSize, "imp_", "nf_", true);
return;
}
...
...
@@ -6000,10 +6010,8 @@ int SwitchFaction(int entity,char[] classname)
SwitchFactionString(classname,64);
any classInfo[classdataenum];
// don't switch flag entities for now. And only do cap entities with no cap number.
// don't reload ref points
// don't swap ammo boxes on flag for now until we can fix issues with existing flags. i.e. homeland crashes.
if(GetEntitySavingKeys(classname,pVersion,classInfo) && ShouldSave(entity,classname,classInfo) && classInfo[data_group] != 2 && (classInfo[data_group] !=1 || !FlagExistsAtIndex(GetEntProp(entity,Prop_Data,"m_iCapNumber"))))
// only swap buildings and spawn and ammo boxes not associated with flags
if(GetEntitySavingKeys(classname,pVersion,classInfo) && ShouldSave(entity,classname,classInfo) && (classInfo[data_group] == 5 || classInfo[data_group] == 3 || (classInfo[data_group] ==1 && !FlagExistsAtIndex(GetEntProp(entity,Prop_Data,"m_iCapNumber"))) ))
{
...
...
dist/scenarios/entdata.txt
View file @
404e9c79
...
...
@@ -1211,6 +1211,7 @@
"emp_comm_restrict"
{
"extend" "brush"
"customOnly" "1"
"version" "1.04"
"moveable" "0"
}
...
...
@@ -1218,6 +1219,7 @@
{
"extend" "brush"
"version" "1.04"
"customOnly" "1"
"moveable" "0"
"fields"
{
...
...
@@ -1251,6 +1253,7 @@
"extend" "entity"
"version" "1.08"
"moveable" "0"
"removable" "false"
"fields"
{
"skin"
...
...
dist/updater.txt
View file @
404e9c79
...
...
@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.2
2
"
"Latest" "1.2
3
"
}
}
...
...
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