
Damn... got pushed to the 501st page...

That is the most horrifying fucking thing I have ever seen.skaarjman wrote:any way to make it shorter ?
Code: Select all
Script "item_pickup" (int itemid) { print(s:"Picked up item",d:item_ids[itemid-1]); if(wow_inventoryslot[0] != 0) { if(wow_inventoryslot[1] != 0) { if(wow_inventoryslot[2] != 0) { if(wow_inventoryslot[3] != 0) { if(wow_inventoryslot[4] != 0) { if(wow_inventoryslot[5] != 0) { if(wow_inventoryslot[6] != 0) { if(wow_inventoryslot[7] != 0) { if(wow_inventoryslot[8] != 0) { if(wow_inventoryslot[9] != 0) { if(wow_inventoryslot[10] != 0) { if(wow_inventoryslot[11] != 0) { if(wow_inventoryslot[12] != 0) { if(wow_inventoryslot[13] != 0) { if(wow_inventoryslot[14] != 0) { if(wow_inventoryslot[15] != 0) { Print(s:"Inventory is full."); } else if(wow_inventoryslot[15] == 0) { wow_inventoryslot[15] = itemid; } } else if(wow_inventoryslot[14] == 0) { wow_inventoryslot[14] = itemid; } } else if(wow_inventoryslot[13] == 0) { wow_inventoryslot[13] = itemid; } } else if(wow_inventoryslot[12] == 0) { wow_inventoryslot[12] = itemid; } } else if(wow_inventoryslot[11] ==0) { wow_inventoryslot[11] =itemid; } } else if(wow_inventoryslot[10] ==0) { wow_inventoryslot[10] = itemid; } } else if(wow_inventoryslot[9]==0) { wow_inventoryslot[9] = itemid; } } else if(wow_inventoryslot[8] ==0) { wow_inventoryslot[8] = itemid; } } else if(wow_inventoryslot[7] ==0) { wow_inventoryslot[7] = itemid; } } else if(wow_inventoryslot[6] ==0) { wow_inventoryslot[6] = itemid; } } else if(wow_inventoryslot[5] ==0) { wow_inventoryslot[5] = itemid; } } else if(wow_inventoryslot[4] ==0) { wow_inventoryslot[4] = itemid; } } else if(wow_inventoryslot[3] ==0) { wow_inventoryslot[3] = itemid; } } else if(wow_inventoryslot[2] ==0) { wow_inventoryslot[2] = itemid; } } else if(wow_inventoryslot[1] ==0) { wow_inventoryslot[1] = itemid; } } else if(wow_inventoryslot[0] ==0) { wow_inventoryslot[0] = itemid; } }
Spoiler:
Code: Select all
Fire:
PISG A 4
PISG B 0 A_GiveInventory("PistolClip", 1) // moved here so the ammo is given at same time as bullets being fired
PISG B 6 A_FireBullets(5, 0, 1, 5, "BulletPuff")
PISG C 4
PISG B 5
PISG A 0 A_JumpIfInventory("PistolClip",10,"Reload")
PISG A 0 A_ReFire // moved here so the ammo check still happens while holding fire button down
Goto Ready
Flash:
PISF A 7 Bright A_Light1
Goto LightDone
PISF A 7 Bright A_Light1
Goto LightDone
Reload:
PISG B 0
PISG B 0 A_PlaySound( "weapons/sshotl", CHAN_WEAPON ) // epic reloading sound
PISG B 20 // this frame added so there's a reloading delay
PISG B 0 A_TakeInventory("PistolClip",10)
Goto Ready
Spawn:
PIST A -1
Stop
I guess you want to bring lumps from retres.wad into your own map, so that a separate resource wad is not needed.VGA wrote:Inside the Eternal resource pack I got from realm667 there are some transparency gfx inside T_START and T_END markers. Do I need this stuff or should I delete them like the colormaps? I'm making a vanilla/limit-removing project.