]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make bullet cases more bouncy than shell cases
authorbones_was_here <bones_was_here@xonotic.au>
Sat, 24 Dec 2022 11:42:20 +0000 (21:42 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 24 Dec 2022 11:42:20 +0000 (21:42 +1000)
qcsrc/common/effects/qc/casings.qc

index 0e851da7f79809e6eec5a03de2f48fcd53701c25..95e90a149c5e550b690e5901b574d71a4b887bd2 100644 (file)
@@ -167,7 +167,6 @@ NET_HANDLE(casings, bool isNew)
     casing.velocity += 2 * prandomvec();
     casing.avelocity = '0 250 0' + 100 * prandomvec();
     set_movetype(casing, MOVETYPE_BOUNCE);
-    casing.bouncefactor = 0.25;
     settouch(casing, Casing_Touch);
     casing.move_time = time;
     casing.event_damage = Casing_Damage;
@@ -177,10 +176,12 @@ NET_HANDLE(casings, bool isNew)
     {
         case 1:
             setmodel(casing, MDL_CASING_SHELL);
+            casing.bouncefactor = 0.25;
             casing.cnt = time + autocvar_cl_casings_shell_time;
             break;
         default:
             setmodel(casing, MDL_CASING_BULLET);
+            casing.bouncefactor = 0.5;
             casing.cnt = time + autocvar_cl_casings_bronze_time;
             break;
     }