So...
SameSitesIgnorePlayers - Sam sites ignore all players.
So sam_static (built in map (launch site) sam sites) and sam_site_turret_deployed (player placed sam sites on their bases basically) won't shoot at players. Think I understand this.
I'm trying to make it so sam_static sam sites work and target players and their helis. But player deployed sam sites do not target players and their helis. Basically, vanilla Rust behavior for sam_static, disable player sam sites.
So I think... i need to remove the Ruleset Flag of "SameSiteIngorePlayers" and add in the two new entity groups for sam sites.
-- New Sam Site Entity Groups
{
"name": "mapsamsite",
"members": "sam_static",
"exclusions": ""
}
,
{
"name": "playersamsite",
"members": "sam_site_turret_deployed",
"exclusions": ""
}
-- Removed SamSiteIgnorePlayers
"RuleSets": [
{
"name": "default",
"enabled": true,
"defaultAllowDamage": false,
"flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, TrapsIgnorePlayers, TurretsIgnorePlayers",
-- Add rules
"mapsamsite can hurt players",
"playersamsite cannot hurt anything"
So my questions are...
Do i need to remove the flag SameSiteIgnorePlayers to implement my own rules?
Do Sam sites target the player or the heli that the player is flying?
While I hvae "nothing can hurt mini", is there a way to allow sam_static sites to still hurt the mini? Like if i put the rules in order of what I want to fire first, does that work? I think the Rule Priority would cover this by doing something like...
"mapsamsite can hurt players",
"mapsamsite can hurt mini",
"mapsamsite can hurt attackheli",
"mapsamsite can hurt scrapheli",
"playersamsite cannot hurt anything",
Would that allow Launch Site to hurt players and their heli's and also prevent player sam sites from hurting anything?
Side question (ignorable question). Would this have player sam sites shooting at players but not hurting them? Not sure if that would be fun or annoying. lol.
Sam Sites and SamSitesIgnorePlayers
SamSiteIgnoresPlayers was removed
StaticSamSitesIgnorePlayers is for launchsite samsites, etc
PlayerSamSitesIgnorePlayers is for all player samsites
rules aren't needed, use the flags :p
nivexSamSiteIgnoresPlayers was removed
StaticSamSitesIgnorePlayers is for launchsite samsites, etc
PlayerSamSitesIgnorePlayers is for all player samsites
rules aren't needed, use the flags :p
Gotcha! UMod documentation on the plugin still shows SameSiteIgnoresPlayers and doesn't show the two options you mentioned.
So i can get the functionality using the two flags you mentioned. Specifically,
"flags": "PlayerSamSitesIgnorePlayers"
Leaving the Static Sam sites to continue to target players. Sweeeeet! Thank you!
no problem. docs updated with the new flags