monster_barney #
Changes #
- Checks for friendly fire when shooting.
- Now uses alert sentences (BA_ATTACK) when encountering enemy.
New parameters #
Gun state
allows to spawn a security guard with a gun drawn.
Skill variables #
- sk_barney_health - monster’s health.
- sk_9mm_bullet - handgun bullet damage.
- sk_357_bullet - Python bullet damage.
Default classification #
Player Ally
Soundscripts #
- Barney.Pain - pain sound.
- Barney.Die - death sound.
- Barney.FirePistol - firing a handgun.
- Barney.FirePython - firing a Python. Derived from NPC.Python.
Animation events #
2
- draw a weapon3
- fire a weapon. Play Barney.FirePistol or Barney.FirePython soundscripts.4
- holster a weapon.
Entity template examples #
Barney’s evil twin from Sven Co-op.
{
"barnabus": {
"own_visual": {
"model": "models/barnabus.mdl"
},
"classify": "Human Military"
}
}
The trace attack rules that emulate monster’s native ones. Could be used as a starting point for further changes.
{
"monster_barney": {
"trace_attack": [
{
"conditions": {
"hitgroup": ["chest", "stomach"],
"dmg_type": ["bullet", "slash", "club"]
},
"modifier": {
"dmg": "*0.5"
}
},
{
"conditions": {
"hitgroup": 10,
"dmg_type": ["bullet", "slash", "club"]
},
"modifier": {
"dmg": "-20",
"dmg_min_threshold": 0.01,
"hitgroup": "head"
},
"threshold_effects": {
"ricochet": {
"chance": 1.0,
"scale": 1
}
}
},
{
"conditions": {
"hitgroup": 10
},
"modifier": {
"hitgroup": "head"
}
}
]
}
}