Portal Floor Button Triggers
The entities prop_floor_button , prop_floor_cube_button , prop_floor_ball_button and prop_under_floor_button spawn a trigger volume to detect players and cubes.
Each entity uses a different bounding size to match the default model, but custom models may need their own size.
To allow this, these entities look for a hitbox group named trigger, and match the size of this. For example, this is the equivalent QC section for a standard modern button:
The first hitbox set here is used for bullet collisions and other normal purposes. This is normally autogenerated. To get the first set, open your model in HLMV, uncheck "Autogenerate Hitboxes" on the lower-left of the "Bones" tab, then press "Generate QC" in the upper-right. You can also create/edit the trigger hitboxes here, especially handy for fine-tuning positioning.
The trigger is always created with the same orientation as the button entity, so the specific bone does not matter.
Default sizes
For reference, the default sizes are as follows. All are square, and start at z=0:
| Classname | Half-Size | Height |
prop_floor_button | 20 | 14 |
prop_floor_cube_button | 20 | 14 |
prop_floor_ball_button | 5 | 14 |
prop_under_floor_button | 30 | 17 |