mirror of
https://github.com/astromaddie/lambda1-vr.git
synced 2026-10-23 05:00:17 +02:00
Updated weapon models
Used updated weapon models courtesy of: https://github.com/rorincloud/Half-Life-VR/commits/master Fixed issue where refdef was calculated indivudually for each eye which caused horrible nausea
This commit is contained in:
1 parent
a0066afcce
commit
da6c544caf
20 files changed
+31
-9
No files matched your search
@@ -60,8 +60,24 @@ import static android.system.Os.setenv;
|
||||
params.screenBrightness = 1.0f;
|
||||
getWindow().setAttributes( params );
|
||||
|
||||
copy_asset(getFilesDir().getPath(), "extras.pak");
|
||||
copy_asset(getFilesDir().getPath(), "extras.pak", false);
|
||||
|
||||
//Copy modified weapon models
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_9mmar.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_9mmhandgun.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_357.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_crossbow.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_crowbar.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_egon.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_gauss.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_grenade.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_hgun.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_rpg.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_satchel.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_satchel_radio.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_shotgun.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_squeak.mdl", true);
|
||||
copy_asset("/sdcard/xash/valve/", "models/v_tripmine.mdl", true);
|
||||
|
||||
//Set default environment
|
||||
try {
|
||||
@@ -105,9 +121,9 @@ import static android.system.Os.setenv;
|
||||
mNativeHandle = GLES3JNILib.onCreate( this, commandLineParams );
|
||||
}
|
||||
|
||||
public void copy_asset(String path, String name) {
|
||||
public void copy_asset(String path, String name, boolean forceOverwrite) {
|
||||
File f = new File(path + "/" + name);
|
||||
if (!f.exists()) {
|
||||
if (!f.exists() || forceOverwrite) {
|
||||
|
||||
//Ensure we have an appropriate folder
|
||||
new File(path).mkdirs();
|
||||
|
||||
Reference in new issue
Block a user