MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / collide_player_and_marker

Function collide_player_and_marker

physics/collide.cpp:1264–1271  ·  view source on GitHub ↗

Prints out a marker hud message if needed

Source from the content-addressed store, hash-verified

1262
1263// Prints out a marker hud message if needed
1264void collide_player_and_marker(object *playerobj, object *marker_obj, vector *collision_point, vector *collision_normal,
1265 bool f_reverse_normal, fvi_info *hit_info) {
1266 if (playerobj->id == Player_num) {
1267 char str[100];
1268 snprintf(str, sizeof(str), "Marker: %s", MarkerMessages[marker_obj->id]);
1269 AddHUDMessage(str);
1270 }
1271}
1272
1273#define MIN_WALL_HIT_SOUND_VEL 40.0f
1274#define MAX_WALL_HIT_SOUND_VEL 120.0f

Callers

nothing calls this directly

Calls 1

AddHUDMessageFunction · 0.85

Tested by

no test coverage detected