Author Topic: Notice of Upcoming Update affecting ambient generic entities  (Read 122 times)

wallworm

  • Administrator
  • Hero Member
  • *****
  • Posts: 3667
  • Karma: 101
  • Behind me?
    • View Profile
Notice of Upcoming Update affecting ambient generic entities
« on: September 02, 2020, 07:39:50 pm »
I'm going to add an update to WW soon that has a visual helper for the radius of some entity parameters (like for env_soundscape and ambient_generic). The problem is that to do this correctly, I need to make sure that the parameters for these functions are float values. Unfortunately, due to the way the FGD files are written, the radius parameter for some entities (ambient_generic, for example) were stored as strings instead of floats. In my update, these will convert to floats. But here is the catch--the update to Custom Attributes that changes a parameter type does not allow the current value to propagate. This means that any existing scenes will get the default value applied to all ambient_generic radius values.

I can write a function that can embed the current value that can later be retrieved into the updated entities, but it must be done on a scene BEFORE updating to the version of WW that has these entity updates.

I want to try and get an idea about how many people this will affect as well as how many scenes. I need to know if it's worth my time to built this function.

Joris Ceoen

  • Global Moderator
  • Full Member
  • *****
  • Posts: 231
  • Karma: 27
  • WallWorm Ambassador
    • View Profile
Re: Notice of Upcoming Update affecting ambient generic entities
« Reply #1 on: September 03, 2020, 03:57:03 pm »
I want to try and get an idea about how many people this will affect as well as how many scenes. I need to know if it's worth my time to built this function.
For me, specifically for Daigo, won't be a problem because I hadn't any ambient_generic entities. Not sure about other entities (prop_static also have a radius option for visibility optimization), but I'm 100% positive I haven't dabbled with any of the radius values on any possible entity in my scene, aka they're all the default as it is in Hammer.

wallworm

  • Administrator
  • Hero Member
  • *****
  • Posts: 3667
  • Karma: 101
  • Behind me?
    • View Profile
Re: Notice of Upcoming Update affecting ambient generic entities
« Reply #2 on: September 03, 2020, 06:57:42 pm »
The FGD data made the radius be a string (with text input) for several entities :

Code: [Select]
radius(string) : "Max Audible Distance" : "1250" : "Maximum distance at which this sound is audible."
Here are the entities that I see this problem going to occur from base.fgd :

  • ambient_generic
  • env_physexplosion
  • physics_cannister
  • trigger_proximity
« Last Edit: September 03, 2020, 07:02:08 pm by wallworm »

Joris Ceoen

  • Global Moderator
  • Full Member
  • *****
  • Posts: 231
  • Karma: 27
  • WallWorm Ambassador
    • View Profile
Re: Notice of Upcoming Update affecting ambient generic entities
« Reply #3 on: September 04, 2020, 05:32:27 am »
  • ambient_generic
  • env_physexplosion
  • physics_cannister
  • trigger_proximity
No problem!