
Masters1337
Joined: Mar 5, 2006
halonaminator's unfortunate idol
|
Posted: Jan 30, 2016 06:49 PM
Msg. 1 of 5
To whoever can identify and fix the following problem in these tags: https://www.dropbox.com/s/4pg5soyceuw44qk/battle_rifle_suprise.rar?dl=0Basically, we have several weapons in SPV3, who when you pick up the weapon, displays the correct string (ie: Picked up a Battle Rifle) but then when you run over ammo for them... you hear the pickup sound but get no string entry. The problem is not however with the string... after reconstructing the weapon tag, it works! But I have several other weapons that are doing the same. So for those brave enough to dive into these tags... you'll notice that they are identical in their fields, but function different in game in regards to their strings. I have a feeling something is corrupted inside the tag, in something not visible to the editor. So if you can find why one of these only displays half of the strings.. you will get a special cookie of your choosing. Edited by Masters1337 on Jan 30, 2016 at 06:49 PM
|
|
|

not giraffe
Joined: Jul 17, 2014
|
Posted: Jan 30, 2016 07:09 PM
Msg. 2 of 5
It's the secondary magazine.
|
|
|

Super Flanker
Joined: Oct 5, 2012
The length of your life depends on my aim.
|
Posted: Jan 30, 2016 07:12 PM
Msg. 3 of 5
I wonder what special cookie he is going to choose.
|
|
|

not giraffe
Joined: Jul 17, 2014
|
Posted: Jan 30, 2016 07:18 PM
Msg. 4 of 5
Quote: --- Original message by: Super Flanker I wonder what special cookie he is going to choose. I've only identified the problem. The only fix I see is completely removing it.
|
|
|

Masters1337
Joined: Mar 5, 2006
halonaminator's unfortunate idol
|
Posted: Jan 30, 2016 07:43 PM
Msg. 5 of 5
and that is indeed the fix. Given our new setup for grenade launchers, it doesn't really matter if it is using a second clip, since the firing is done by editing tag data in memory. Shoot me a PM. (script continuous grenade_spew ;; (print "Grenade spew script is running") (if (< (weapon_data_get_real player_battery_object age) .995) (weapon_data_trigger_set_real brg 1 "spew_time" "" 0.075) ) (if (> (weapon_data_get_real player_battery_object age) .995) (weapon_data_trigger_set_real brg 1 "spew_time" "" 0.015) ) (if (< (weapon_data_get_real player_battery_object age) .995) (weapon_data_trigger_set_real arg 1 "spew_time" "" 0.075) ) (if (> (weapon_data_get_real player_battery_object age) .995) (weapon_data_trigger_set_real arg 1 "spew_time" "" 0.015) ) )
(script continuous grenade_pickup (sleep_until (or ;; (and (< (objects_distance_to_object (players) grenade_box_1) 1) (!= (objects_distance_to_object (players) grenade_box_1) -1)) ;; (and (< (objects_distance_to_object (players) grenade_box_2) 1) (!= (objects_distance_to_object (players) grenade_box_2) -1)) ;; (and (< (objects_distance_to_object (players) grenade_box_3) 1) (!= (objects_distance_to_object (players) grenade_box_3) -1)) (= 1 (device_get_position grenade_box_1 )) (= 1 (device_get_position grenade_box_2 )) (= 1 (device_get_position grenade_box_3 )) (= 1 (device_get_position grenade_box_4 )) (= 1 (device_get_position grenade_box_5 )) (= 1 (device_get_position grenade_box_6 )) (= 1 (device_get_position grenade_box_7 )) (= 1 (device_get_position grenade_box_8 )) (= 1 (device_get_position grenade_box_9 )) (= 1 (device_get_position grenade_box_10 )) (= 1 (device_get_position grenade_box_11 )) (= 1 (device_get_position grenade_box_12 ))
) ) (print "player is near grenade box and a grenade box has a power of 1") (effect_new_on_object_marker "cmt\powerups\human\ammo_box\powerups\grenade_box" player0_global "body") (if (= 1 (device_get_position grenade_box_1 )) (object_destroy grenade_box_1)) (if (= 1 (device_get_position grenade_box_2 )) (object_destroy grenade_box_2)) (if (= 1 (device_get_position grenade_box_3 )) (object_destroy grenade_box_3)) (if (= 1 (device_get_position grenade_box_4 )) (object_destroy grenade_box_4)) (if (= 1 (device_get_position grenade_box_5 )) (object_destroy grenade_box_5)) (if (= 1 (device_get_position grenade_box_6 )) (object_destroy grenade_box_6)) (if (= 1 (device_get_position grenade_box_7 )) (object_destroy grenade_box_7)) (if (= 1 (device_get_position grenade_box_8 )) (object_destroy grenade_box_8)) (if (= 1 (device_get_position grenade_box_9 )) (object_destroy grenade_box_9)) (if (= 1 (device_get_position grenade_box_10 )) (object_destroy grenade_box_10)) (if (= 1 (device_get_position grenade_box_11 )) (object_destroy grenade_box_11)) (if (= 1 (device_get_position grenade_box_12 )) (object_destroy grenade_box_12))
(sleep_until (or (unit_has_weapon_readied (player0) "cmt\weapons\spv3\human\battle_rifle\_battle_rifle_grenade\battle_rifle_grenade") (unit_has_weapon_readied (player0) "cmt\weapons\spv3\human\assault_rifle\_assault_rifle_grenade\assault_rifle_grenade") ) ) ;; (print "weapon is verified.") (weapon_data_set_real player_battery_object age .94) ) (script startup grenade_launcher (sleep_until (or (unit_has_weapon_readied (player0) "cmt\weapons\spv3\human\battle_rifle\_battle_rifle_grenade\battle_rifle_grenade") (unit_has_weapon_readied (player0) "cmt\weapons\spv3\human\assault_rifle\_assault_rifle_grenade\assault_rifle_grenade") ) ) (if (= (unit_data_get_integer (player0) current_weapon_index) 0) (set player_battery_object (unit_data_get_object (player0) weapon0)) (set player_battery_object (unit_data_get_object (player0) weapon1)) ) (weapon_data_set_real player_battery_object age .94) (object_create_anew grenade_box_1) (device_set_power grenade_box_2 1) (device_set_power grenade_box_3 1) (device_set_power grenade_box_4 1) (device_set_power grenade_box_5 1) (device_set_power grenade_box_6 1) (device_set_power grenade_box_7 1) (device_set_power grenade_box_8 1) (device_set_power grenade_box_9 1) (device_set_power grenade_box_10 1) (device_set_power grenade_box_11 1) (device_set_power grenade_box_12 1) (sleep_until (< (objects_distance_to_object (players) grenade_box_1) 1))(device_set_power grenade_box_1 1) )
|
|
|