Hit Detection
The hit detection system will use the DamageCore Extension to detect damage on props linked to the E2.
Configuration
The targets of the game are consisted of 5 parts:
- Head
- Chest
- Stomach
- Legs
- Base
Model Parts Reference
Head
models/props/props_gameplay/target_ct_head.mdl
models/props/props_gameplay/target_t_head.mdl
Chest
models/props/props_gameplay/target_ct_chest.mdl
models/props/props_gameplay/target_t_chest.mdl
Stomach
models/props/props_gameplay/target_ct_stomach.mdl
models/props/props_gameplay/target_t_stomach.mdl
Legs
models/props/props_gameplay/target_ct_legs.mdl
models/props/props_gameplay/target_t_legs.mdl
Base
models/sprops/rectangles/size_1/rect_3x30x3.mdl
Code References
// Init damage detection
runOnDmg(1)
// Detect if damage was caused by a bullet
lastDamage():isBulletDamage()
// Prop/Player Detection
dmgVictim()
dmgAttacker()
Hit Detection
The hit detection system will use the DamageCore Extension to detect damage on props linked to the E2.
Configuration
The targets of the game are consisted of 5 parts:
Model Parts Reference
Head
models/props/props_gameplay/target_ct_head.mdl
models/props/props_gameplay/target_t_head.mdl
Chest
models/props/props_gameplay/target_ct_chest.mdl
models/props/props_gameplay/target_t_chest.mdl
Stomach
models/props/props_gameplay/target_ct_stomach.mdl
models/props/props_gameplay/target_t_stomach.mdl
Legs
models/props/props_gameplay/target_ct_legs.mdl
models/props/props_gameplay/target_t_legs.mdl
Base
models/sprops/rectangles/size_1/rect_3x30x3.mdl
Code References