03.08.2012, 15:14
The crouch key (on-foot) is not used in vehicles (pressing C does no action when pressed in a car). Because it now is just another of those keys (like b, q, x, etc), it does not trigger OnPlayerKeyStateChange (or get listed in GetPlayerKeys).
It might be a bit hard to fully understand, but that's the way it is.
Edit: The value of KEY_CROUCH (2, or 0b10) is used in vehicles, but under a different key. In vehicles, it's the horn (by default H or caps lock).
It might be a bit hard to fully understand, but that's the way it is.
Edit: The value of KEY_CROUCH (2, or 0b10) is used in vehicles, but under a different key. In vehicles, it's the horn (by default H or caps lock).