From 61c5fb1e253f31d2faa3a0fc970ce4e18f32b205 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 29 Oct 2023 13:53:19 +0100 Subject: pickup sound --- src/throwables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/throwables.c') diff --git a/src/throwables.c b/src/throwables.c index 2e7d957..cd8f8af 100644 --- a/src/throwables.c +++ b/src/throwables.c @@ -10,7 +10,7 @@ void throw_throwable(platform_window* window, u32 id, throwable_type type, float log_info("User with unknown id throwing stuff"); } - throwable t = {.active = true, .state = THROWABLE_FLYING, .alive_time = 0.0f, .type = type, .direction = (vec3f){.x = dirx, .y = diry, .z = -0.2f}, + throwable t = {.active = true, .state = THROWABLE_FLYING, .alive_time = 0.0f, .type = type, .direction = (vec3f){.x = dirx*1.5f, .y = diry*1.5f, .z = -0.2f}, .player_id = id, .position = (vec3f){.x = p->playerx, .y = p->playery, .z = p->height}}; t.sprite = create_sprite(img_grenade_explode, 12, 96, 96, 0.1f); -- cgit v1.2.3-70-g09d2