Properly throwable grenades

They're working pretty much perfectly now
This commit is contained in:
Simon 2020-09-21 23:03:25 +01:00
parent 8cd379a32d
commit 51a25ce6a5
5 changed files with 6 additions and 6 deletions

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.drbeef.doom3quest"
android:versionCode="7"
android:versionName="0.0.13" android:installLocation="auto" >
android:versionCode="8"
android:versionName="0.0.14" android:installLocation="auto" >
<!-- Tell the system this app requires OpenGL ES 3.1. -->
<uses-feature android:glEsVersion="0x00030001" android:required="true"/>

View file

@ -1,7 +1,7 @@
#if !defined(vr_client_info_h)
#define vr_client_info_h
#define NUM_WEAPON_SAMPLES 18
#define NUM_WEAPON_SAMPLES 7
#define OLDER_READING (NUM_WEAPON_SAMPLES-1)
#define NEWER_READING (NUM_WEAPON_SAMPLES-5)

View file

@ -2967,7 +2967,7 @@ void idWeapon::Event_LaunchProjectiles( int num_projectiles, float spread, float
throw_direction.Normalize();
dir = throw_direction;
launchPower = pVRClientInfo->throw_power * 0.8f;
launchPower = pVRClientInfo->throw_power * 0.5f;
} else {
dir = viewWeaponAxis[0] + viewWeaponAxis[2] * (ang * idMath::Sin(spin)) -
viewWeaponAxis[1] * (ang * idMath::Cos(spin));

Binary file not shown.

View file

@ -159,8 +159,8 @@ import static android.system.Os.setenv;
//Default config
copy_asset("/sdcard/Doom3Quest/base", "default.cfg", false);
//Weapons
copy_asset("/sdcard/Doom3Quest/base", "pak099.pk4", false);
//Weapons - force overwrite
copy_asset("/sdcard/Doom3Quest/base", "pak099.pk4", true);
//Read these from a file and pass through