184 lines
6.5 KiB
Plaintext
184 lines
6.5 KiB
Plaintext
actor Lith_CBIItem : CustomInventory
|
|
{
|
|
//$Category "CBI Items"
|
|
|
|
Inventory.PickupMessage ""
|
|
Inventory.PickupSound "player/pickup/upgrcbi"
|
|
|
|
+INVENTORY.ALWAYSPICKUP
|
|
|
|
var int user_glowangle;
|
|
var int user_glowzangle;
|
|
|
|
const int Lith_ISF = SXF_SETMASTER;
|
|
|
|
states
|
|
{
|
|
SpawnLoop:
|
|
TNT1 A 1 A_CheckSight("LoopButDontShowThatShitOffDawg")
|
|
TNT1 A 0 A_SetUserVar(user_glowangle, (user_glowangle + 5) % 360)
|
|
TNT1 A 0 A_SetUserVar(user_glowzangle, (user_glowzangle + 2) % 360)
|
|
|
|
// xyz
|
|
TNT1 A 0 A_SpawnItemEx("Lith_UpgrGlow", sin(user_glowangle) * 32.0,
|
|
cos(user_glowangle) * 32.0,
|
|
24.0 + (sin(user_glowzangle) * 9.0),
|
|
0, 0, 0, 0)
|
|
|
|
// yz
|
|
TNT1 A 0 A_SpawnItemEx("Lith_UpgrGlow", 0,
|
|
sin(user_glowangle) * 32.0,
|
|
24.0 + (cos(user_glowangle) * 32.0),
|
|
0, 0, 0, 0)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_UpgrGlow", cos(user_glowangle) * 32.0,
|
|
sin(user_glowangle) * 32.0,
|
|
24.0 + (sin(user_glowangle) * 32.0),
|
|
0, 0, 0, 0)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_UpgrGlow", cos(user_glowangle) * 32.0,
|
|
((1.0 - sin(user_glowangle)) * 32.0) - 32.0,
|
|
24.0 + (sin(user_glowangle) * 32.0),
|
|
0, 0, 0, 0)
|
|
|
|
// xz
|
|
TNT1 A 0 A_SpawnItemEx("Lith_UpgrGlow", sin(user_glowangle) * 32.0,
|
|
0,
|
|
24.0 + (cos(user_glowangle) * 32.0),
|
|
0, 0, 0, 0)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_UpgrGlow", sin(user_glowangle) * 32.0,
|
|
cos(user_glowangle) * 32.0,
|
|
24.0 + (sin(user_glowangle) * 32.0),
|
|
0, 0, 0, 0)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_UpgrGlow", ((1.0 - sin(user_glowangle)) * 32.0) - 32.0,
|
|
cos(user_glowangle) * 32.0,
|
|
24.0 + (sin(user_glowangle) * 32.0),
|
|
0, 0, 0, 0)
|
|
loop
|
|
LoopButDontShowThatShitOffDawg:
|
|
TNT1 A 1
|
|
TNT1 A 0 A_CheckSight("LoopButDontShowThatShitOffDawg")
|
|
goto SpawnLoop
|
|
}
|
|
}
|
|
|
|
actor Lith_ISM_WUPG_A : Lith_ItemSpriteM {states {Spr: WUPG A 0 A_Jump(256, "SpawnLoop")}}
|
|
actor Lith_ISM_CUPG_A : Lith_ItemSpriteM {states {Spr: CUPG A 0 A_Jump(256, "SpawnLoop")}}
|
|
actor Lith_ISM_ARM1_Z : Lith_ItemSpriteM {states {Spr: ARM1 Z 0 A_Jump(256, "SpawnLoop")}}
|
|
actor Lith_ISM_CUPG_B : Lith_ItemSpriteM {states {Spr: CUPG B 0 A_Jump(256, "SpawnLoop")}}
|
|
actor Lith_ISM_WRDP_A : Lith_ItemSpriteM {states {Spr: WRDP A 0 A_Jump(256, "SpawnLoop")}}
|
|
|
|
actor Lith_ISC_SPEL_A : Lith_ItemSpriteC {states {Spr: SPEL A 0 A_Jump(256, "SpawnLoop")}}
|
|
actor Lith_ISC_SPEL_B : Lith_ItemSpriteC {states {Spr: SPEL B 0 A_Jump(256, "SpawnLoop")}}
|
|
actor Lith_ISC_SPEL_C : Lith_ItemSpriteC {states {Spr: SPEL C 0 A_Jump(256, "SpawnLoop")}}
|
|
actor Lith_ISC_SPEL_D : Lith_ItemSpriteC {states {Spr: SPEL D 0 A_Jump(256, "SpawnLoop")}}
|
|
actor Lith_ISC_SPEL_E : Lith_ItemSpriteC {states {Spr: SPEL E 0 A_Jump(256, "SpawnLoop")}}
|
|
|
|
actor Lith_BossReward1 : Lith_CBIItem
|
|
{
|
|
Tag "Weapon Modification Device"
|
|
|
|
states
|
|
{
|
|
Spawn:
|
|
TNT1 A 0
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_CBIItemWasSpawned", cupg_weapninter)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISM_WUPG_A", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISC_SPEL_A", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
goto SpawnLoop
|
|
Pickup:
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_PickupCBIItem", cupg_weapninter)
|
|
stop
|
|
}
|
|
}
|
|
|
|
actor Lith_BossReward2 : Lith_CBIItem
|
|
{
|
|
Tag "KSKK Spec. High-Grade CPU"
|
|
|
|
states
|
|
{
|
|
Spawn:
|
|
TNT1 A 0
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_CBIItemWasSpawned", cupg_hasupgr1)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISM_CUPG_A", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISC_SPEL_B", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
goto SpawnLoop
|
|
Pickup:
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_PickupCBIItem", cupg_hasupgr1)
|
|
stop
|
|
}
|
|
}
|
|
|
|
actor Lith_BossReward3 : Lith_CBIItem
|
|
{
|
|
Tag "Armor Interface"
|
|
|
|
states
|
|
{
|
|
Spawn:
|
|
TNT1 A 0
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_CBIItemWasSpawned", cupg_armorinter)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISM_ARM1_Z", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISC_SPEL_C", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
goto SpawnLoop
|
|
Pickup:
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_PickupCBIItem", cupg_armorinter)
|
|
stop
|
|
}
|
|
}
|
|
|
|
actor Lith_BossReward4 : Lith_CBIItem
|
|
{
|
|
Tag "KSKK Spec. Super High-Grade CPU"
|
|
|
|
states
|
|
{
|
|
Spawn:
|
|
TNT1 A 0
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_CBIItemWasSpawned", cupg_hasupgr2)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISM_CUPG_B", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISC_SPEL_D", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
goto SpawnLoop
|
|
Pickup:
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_PickupCBIItem", cupg_hasupgr2)
|
|
stop
|
|
}
|
|
}
|
|
|
|
actor Lith_BossReward5 : Lith_CBIItem
|
|
{
|
|
Tag "Weapon Refactoring Device"
|
|
|
|
states
|
|
{
|
|
Spawn:
|
|
TNT1 A 0
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_CBIItemWasSpawned", cupg_weapninte2)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISM_WRDP_A", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
TNT1 A 0 A_SpawnItemEx("Lith_ISC_SPEL_E", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
goto SpawnLoop
|
|
Pickup:
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_PickupCBIItem", cupg_weapninte2)
|
|
stop
|
|
}
|
|
}
|
|
|
|
actor Lith_BossReward6 : Lith_CBIItem
|
|
{
|
|
Tag "Reality Distortion Interface"
|
|
|
|
states
|
|
{
|
|
Spawn:
|
|
TNT1 A 0
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_CBIItemWasSpawned", cupg_rdistinter)
|
|
IOBJ C 0 A_SpawnItemEx("Lith_ItemSprite", 0,0,0, 0,0,0, 0, Lith_ISF)
|
|
goto SpawnLoop
|
|
Pickup:
|
|
TNT1 A 0 ACS_NamedExecuteWithResult("Lith_PickupCBIItem", cupg_rdistinter)
|
|
stop
|
|
}
|
|
}
|
|
|
|
// EOF
|
|
|