ashene64 / open-sauce

Automatically exported from code.google.com/p/open-sauce
0 stars 0 forks source link

OS Script commands 2 #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. unit_data_set_integer (unit (list_get (players) 0)) current_weapon_index 1
2. unit_data_set_integer (unit (list_get (players) 0)) current_grenade_index 2

What is the expected output? What do you see instead?
1. I expected it to change to my second weapon without exceptioning. When 
preformed via dev mode, you see the HUD change immediately, but when you close 
console to resume game-time it exceptions instead of changing weapons.
2. I expect a -1 instead of an exception for an invalid grenade index. (Note, 
255 is apparently a valid grenade index. Who knew?)

What version of the product are you using? On what operating system?
OS 3.0.3, Windows 7 64bit, Halo Custom Edition 1.09

Original issue reported on code.google.com by heath.ca...@gmail.com on 28 Jun 2012 at 11:01

GoogleCodeExporter commented 9 years ago
Attached exception dump for changing weapon index.

Original comment by heath.ca...@gmail.com on 8 Oct 2012 at 12:42

Attachments:

GoogleCodeExporter commented 9 years ago
For 3.1 the underlying data interop system has changed, and the current 
weapon/grenade index fields are presently readonly (and the supplied index is 
also bounds-checked)

Original comment by kornma...@gmail.com on 10 Oct 2012 at 12:59