Using monster_resource in Hammer?

Discussion in 'Mapping Questions & Discussion' started by Bloodroke, Jul 30, 2013.

  1. Bloodroke

    Bloodroke L1: Registered

    Messages:
    29
    Positive Ratings:
    8
    I have a "scripted" path_track boss set up with 6 attacks so far in my map. Originally, the boss was a prop_dynamic_override because I did not know that the base_boss entity could be used in its place, and allow for sentry targeting, demo grenade hits, bloodsprays when shot, and hit notification sounds.

    Now that I have the boss set up pretty well, I thought that it would be nice to see the boss have a healthbar for obvious reasons. I saw a boss on a map before, and it was also a map specific path_track boss, that had the Monoculus health bar. I was disappointed to find out the boss used SourceMod to make most of its attacks and healthbar work. Why make a map-specific boss use a specific SourceMod plugin to function properly?

    Anyway, after some googling, I came across the monster_resource entity, which to my knowledge, gives a boss the Monoculus healthbar. I am not sure exactly how this entity works, but I was wondering if there was a way to get it into a .fgd to use in Hammer, or to have spawned through an entity_spawn_manager and give my boss a healthbar or something. Is it possible?

    *Edit* - I also noticed that parenting the boss_base entity to the func_tracktrain floods the console with errors, although they don't seem to be important and don't cause performance issues.
    pushing entity (boss) that has parent (boss_train)!
    My question to this would be; if this boss were to be run on a public server, would the flood of errors cause the pings of players to shoot up? Would players with lower-spec computers receive FPS drops from the console error flooding?
     
    Last edited: Jul 30, 2013
  2. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    597
    Positive Ratings:
    1,114
    _resource entities tend to be added to the map automagically by the game engine, they are not supposed to be used in hammer, as such, monster_resource doesn't actually have any hammer editable fields.

    base_boss does have a hammer field called
    - m_initialHealth (Save|Key)(4 Bytes) - health
    Though, which might be what you're looking for.
     
  3. Bloodroke

    Bloodroke L1: Registered

    Messages:
    29
    Positive Ratings:
    8
    As far as I know, that only defines the health the boss has, and doesn't make the healthbar appear at all.