]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
better calculation/settings for strength flag throwing
authorSamual Lenks <samual@xonotic.org>
Fri, 7 Sep 2012 07:12:28 +0000 (03:12 -0400)
committerSamual Lenks <samual@xonotic.org>
Fri, 7 Sep 2012 07:12:28 +0000 (03:12 -0400)
gamemodes.cfg
qcsrc/server/mutators/gamemode_ctf.qc

index 3b8a646fd1e3b0848818669b35d93f4f2fb604ed..eec4b49076d4f6c02bbbf45d2b99fc1fe0c98cf1 100644 (file)
@@ -194,7 +194,7 @@ set g_ctf_flag_dropped_waypoint 2 "show dropped flag waypointsprite when a flag
 set g_ctf_flag_dropped_floatinwater 200 "move upwards while in water at this velocity"
 set g_ctf_flag_pickup_verbosename 0 "show the name of the person who picked up the flag too"
 set g_ctf_drop 1 "dropping allows circumventing carrierkill score, so enable this with care!"
-set g_ctf_drop_strengthmultiplier 3 "multiplier for velocity when you have the strength... essentially, throw the flag REALLY hard when you have the strength :D"
+set g_ctf_drop_strengthmultiplier 2 "multiplier for velocity when you have the strength... essentially, throw the flag REALLY hard when you have the strength :D"
 set g_ctf_drop_velocity 500 "how fast or far a player can throw the flag"
 set g_ctf_pass 1 "allow passing of flags to nearby team mates"
 set g_ctf_pass_radius 500 "maximum radius that you can pass to a team mate in"
index fef968985e59946408340bbcc483284b6fa4a1c4..2a060396ef60aba9661b9a2fb774fc4e7d2ca09e 100644 (file)
@@ -273,7 +273,7 @@ void ctf_Handle_Throw(entity player, entity receiver, float droptype)
                case DROP_THROW:
                {
                        makevectors((player.v_angle_y * '0 1 0') + (player.v_angle_x * '0.5 0 0'));
-                       flag_velocity = (('0 0 200' + (v_forward * autocvar_g_ctf_drop_velocity)) * ((player.items & IT_STRENGTH) ? autocvar_g_ctf_drop_strengthmultiplier : 1));
+                       flag_velocity = ('0 0 200' + ((v_forward * autocvar_g_ctf_drop_velocity) * ((player.items & IT_STRENGTH) ? autocvar_g_ctf_drop_strengthmultiplier : 1)));
                        flag.velocity = W_CalculateProjectileVelocity(player.velocity, flag_velocity, FALSE);
                        break;
                }