Custom Entity Question

So i wanted to make a new entity to create snowy normandy. Basically a very primitive texture painter. The problem is that capzone_sphere affects AI even if its hidden. I wanted to make a simple sphere with the decal component.

Code:

snow_sphere{
  _extends:t="projective_decal"
  sphere_zone__radius:r=8.0
  _tracked:t="sphere_zone__radius"
}

Or you can replace the _extend with actual code, result should be the same:

snow_sphere{
	"decal__thickness:r"{
    value:r=0.15

    _info{
      desc:t="Width of the strategic point boundaries decal line"
    }
  }

  "decal__height:r"{
    value:r=0.5

    _info{
      desc:t="The height at which the strategic point boundaries decal line will be drawn"
    }
  }

  _group{
    _tags:t="render"
    decal__id:i=1
  }

  _group{
    _tags:t="render"
    _track:b=yes
    decal__isVisible:b=yes
  }
  sphere_zone__radius:r=8.0
  _tracked:t="sphere_zone__radius"
}

But the decal does not show up in game:

For some odd reason, capzone_sphere works despite having only 2 components: base_capzone and projective_decal

Now base_capzone’s components are base_capzone_without_navmesh and objective_zone_navmesh
The latter is irrelevant.

But base_capzone_without_navmesh has nothing related to decals!

base_capzone_without_navmesh{
  _extends:t="base_objective_zone_without_navmesh"
  _extends:t="capzone_team_presence"
  capzone__curTeamCapturingZone:i=-1
  capzone__autoDecap:b=yes
  capzone__autoCap:b=yes
  capzone__canCaptureByPresenceDomination:b=yes
  capzone__presenceAdvantageToDominate:i=1
  capzone__isMultipleTeamsPresent:b=no
  capzone__capTeamAdvantage:i=0
  capzone__advantageDivisor:r=4.0
  capzone__maxCapDecapSpeedMult:r=2.0
  _tracked:t="capzone__curTeamCapturingZone"
  _tracked:t="capzone__curTeamDominating"
  _tracked:t="capzone__isMultipleTeamsPresent"
  _replicated:t="capzone__curTeamCapturingZone"
  _replicated:t="capzone__isMultipleTeamsPresent"

  "capzone__nextUpdateTime:r"{
    value:r=0.0
    _tags:t="server"
  }

  "capzone__curTeamDominating:i"{
    value:i=-1
    _tags:t="server"
  }

  "capzone__capTime:r"{
    value:r=20.0
    _info:t="capzone__capTime"
  }

  "capzone__decapTime:r"{
    value:r=30.0
    _info:t="capzone__decapTime"
  }

  "capzone__canCaptureOnVehicle:b"{
    value:b=no

    _info{
      desc:t="Ability to capture the point in a vehicle"
    }
  }

  "capzone__capTeamEid:eid"{
  }

  "humanTriggerable:tag"{
  }

  "zone__excludeDowned:tag"{
  }
}

Going further down, neither base_objective_zone_without_navmesh nor capzone_team_presence has any decal related objects. Why. Doesn’t. It. Work.

capzone_sphere’s decals work, mine does not.

@tommyZZM @Devenddar What am i missing?

1 Like

Try adding resupply_for_ground_vehicle_zone to your code and add resupply _zone_team 3 parameter. Bots and players will not see or interact with this area.Decal should be displayed. Resupply zone can be replaced with box battle area.


snow_sphere{
_extends:t=“projective_decal”
_extends:t=“resupply_for_ground_vehicle_zone”
resupply_zone__team:i=3
sphere_zone__radius:r=8.0
decal__thickness:r=10.15
_tracked:t=“sphere_zone__radius”
}

3 Likes

hi there, i got a question,

so, i tried to do just that:

( with the exception of changing _extends:t= to _use:t= )

but i’m having several issues to make it working.

so, i tried to use the

resupply_for_ground_vehicle_zone / resupply_zone 

but the decals simply won’t show up for me


( even tried to scale it down / up. it simply won’t work )

so, i tried with the:

didn’t worked either.

the only way it somewhat works, is through capzones_box / sphere.

but even then, i have a couple of issues:

despite me putting 0, -1 and 5, ( team owner or any team parameters related )

  • bots from team 3 are still able to capture the area and ruin my " snow ". ( slowly turning it into red )

  • smokes comes out from the snow…

any solutions?

i can’t think of any…

2 Likes

Schyrikami noted that forum quotation marks kinda different. Try rewrite them. I mean try to replace “projective_decal” to "projective_decal" for example.

Or you can edit some capture point properties.

Edit capzone__capTime or capzone__onlyTeamCanCapture.

Clean code inside capzone__smokeTemplateEnemy, capzone__smokeTemplateFriendly and capzone__smokeTemplateNeutral properties.

2 Likes
snow_sphere{
_use:t="projective_decal"
_use:t="resupply_for_ground_vehicle_zone"
resupply_zone__team:i=3
sphere_zone__radius:r=8.0
decal__thickness:r=10.15
_tracked:t="sphere_zone__radius"
}

it would be better this way

3 Likes

many thanks, it worked :pray: :heart:

( i’m still… a bit unsure why. but many thanks. )

edit. ah. it appears the " " changed.

4 Likes