@@ -43,16 +43,16 @@ void it_8028E738(Item_GObj* gobj)
43
43
Item * ip = gobj -> user_data ;
44
44
ItLGunAttr * item_spec_attr = ip -> xC4_article_data -> x4_specialAttributes ;
45
45
ip -> xD4C = item_spec_attr -> x0 ;
46
- ip -> xDD4_itemVar .capsule .x0 = false;
46
+ ip -> xDD4_itemVar .lgun .x0 = false;
47
47
it_8028E860 (gobj );
48
48
}
49
49
50
50
void it_8028E774 (Item_GObj * gobj , Vec3 * arg1 )
51
51
{
52
52
ItLGunAttr * da = GET_ITEM (gobj )-> xC4_article_data -> x4_specialAttributes ;
53
- arg1 -> x = da -> x4 ;
54
- arg1 -> y = da -> x8 ;
55
- arg1 -> z = da -> xC ;
53
+ arg1 -> x = da -> pos . x ;
54
+ arg1 -> y = da -> pos . y ;
55
+ arg1 -> z = da -> pos . z ;
56
56
}
57
57
58
58
void it_8028E79C (Item_GObj * gobj , Vec3 * pos , f32 facing_dir )
@@ -125,14 +125,17 @@ void it_8028E934(HSD_GObj* gobj) {}
125
125
126
126
void it_8028E938 (Item_GObj * gobj )
127
127
{
128
- GET_ITEM (gobj )-> xDD4_itemVar .lgun .x0 = 40 ;
128
+ GET_ITEM (gobj )-> xDD4_itemVar .lgun .x0 =
129
+ 40 ; // The item ID of itlgunbeam is 39, so might be related (ID of
130
+ // itlgunray is 35 btw)
129
131
Item_80268E5C (gobj , 3 , ITEM_ANIM_UPDATE );
130
132
}
131
133
132
134
bool it_8028E96C (Item_GObj * gobj )
133
135
{
134
136
Item * ip = GET_ITEM (gobj );
135
- -- ip -> xDD4_itemVar .lgun .x0 ;
137
+ -- ip -> xDD4_itemVar .lgun .x0 ; // Decrementing this value maybe supports that
138
+ // it refers to the item ID of itlgunbeam
136
139
if (ip -> xDD4_itemVar .lgun .x0 <= 0 ) {
137
140
Item_80268E5C (gobj , 2 , ITEM_ANIM_UPDATE );
138
141
}
0 commit comments