lllllllllllllll, on 31 December 2022 - 10:21 AM, said:
Setting it at spawn I don't see any side effects so far
We are talking about the 262144 flag right?
lllllllllllllll, on 31 December 2022 - 10:21 AM, said:
This post has been edited by VGames: 31 December 2022 - 01:53 PM
VGames, on 31 December 2022 - 01:52 PM, said:
lllllllllllllll, on 31 December 2022 - 02:08 PM, said:
onevent EVENT_LOADACTOR
switch sprite[].picnum
case SEENINE // Alternate explosions
{
ifn sprite[].extra -1
geta[].extra extrasaved
}
break
endswitch
endeventonevent EVENT_EGS
switch sprite[].picnum
case EXPLOSION2 // Alternate explosions
{
seta[].extra actorvar[sprite[].owner].extrasaved
ife sprite[].extra extrasaved
{
action ASMOKEBLAST1
}
else nullop
}
break
endswitch
endeventseta[].extra actorvar[sprite[].owner].extrasaved
This post has been edited by MC84: 31 December 2022 - 07:53 PM
Danukem, on 31 December 2022 - 02:32 PM, said:
lllllllllllllll, on 31 December 2022 - 08:45 PM, said:
MC84, on 31 December 2022 - 07:29 PM, said:
case EXPLOSION2 // Alternate explosions
{
ifn sprite[].owner -1 getav[sprite[].owner].extrasaved extrasaved
// CHOOSE A SPECIFIC NUMERICAL VALUE FOR THE ALTERNATE EXPLOSION
// LET'S SAY 2
ife extrasaved 2 cstat 32768 // we are just turning it invisible for now
}
break
action EXPLOSION_FRAMES 0 20 1 1 4
actor EXPLOSION2 1 EXPLOSION_FRAMES
ifactioncount 20
killit
enda
action EXPLOSION_FRAMES 0 20 1 1 4
action ASMOKEBLAST1 blah blah blah blah
actor EXPLOSION2 1 EXPLOSION_FRAMES
ife extrasaved 2 ifaction EXPLOSION_FRAMES { action ASMOKEBLAST1 cstat 0 }
ifactioncount 20
killit
enda
lllllllllllllll, on 01 January 2023 - 01:57 PM, said:
VGames, on 02 January 2023 - 10:35 AM, said:
model "models/nailgun/nailgun.MD2" {
scale 20
skin { pal 0 file "models/nailgun/nailgun.png" }
anim { frame0 "shot1" frame1 "shot1" fps 4 }
frame { frame "shot1" tile0 6872 tile1 6872 }
anim { frame0 "shot2" frame1 "shot9" fps 40 }
frame { frame "shot2" tile0 6873 tile1 6874 }
hud { tile0 6872 tile1 6874 xadd -0.38 yadd 0.3 zadd 0 angadd 0 }
}
This post has been edited by VGames: 02 January 2023 - 05:01 PM
action EXPLOSION_FRAMES 0 20 1 1 4
action ASMOKEBLAST1 3743 16 1 1 8 // 3743 tiles from original EXPLOSION2 (1890) = 5633
action ASMOKEBLAST2 3763 33 1 1 4
actor EXPLOSION2 1 EXPLOSION_FRAMES
{
ife extrasaved 1
ifaction EXPLOSION_FRAMES
{ action ASMOKEBLAST1 cstat 0 }
else
ife extrasaved 2
ifaction EXPLOSION_FRAMES
{ action ASMOKEBLAST2 cstat 0 }
else
{ ifactioncount 20
killit
}
}
enda{
ife extrasaved 1
ifaction EXPLOSION_FRAMES
{
cactor SMOKEBLAST1
action ASMOKEBLAST1 cstat 0 } case EXPLOSION2 // Alternate explosions
{
ifn sprite[].owner -1 // owner being the SEENINE sprite that spawned the EXPLOSION2 actor
getav[sprite[].owner].extrasaved extrasaved
ife extrasaved 1
{
ifactioncount 16
killit
}
else
ife extrasaved 2
{
ifactioncount 33
killit
}
else nullop
}
breakaction EXPLOSION_FRAMES 0 20 1 1 4
action ASMOKEBLAST1 3743 16 1 1 8 // 3743 tiles from original EXPLOSION2 (1890) = 5633
action ASMOKEBLAST2 3763 33 1 1 4
actor EXPLOSION2 1 EXPLOSION_FRAMES
ife extrasaved 1
ifaction EXPLOSION_FRAMES
{ action ASMOKEBLAST1 cstat 0 }
else
ife extrasaved 2
ifaction EXPLOSION_FRAMES
{ action ASMOKEBLAST2 cstat 0 }
ifaction EXPLOSION_FRAMES
ifactioncount 20
killit
else
ifaction ASMOKEBLAST1
ifactioncount 16
killit
else
ifaction ASMOKEBLAST2
ifactioncount 33
killit
enda
VGames, on 02 January 2023 - 04:21 PM, said:
model "models/nailgun/nailgun.MD2" {
scale 20
skin { pal 0 file "models/nailgun/nailgun.png" }
skin { pal 1 file "models/nailgun/nailgunB.png" }
skin { pal 2 file "models/nailgun/nailgunR.png" }
skin { pal 8 file "models/nailgun/nailgunG.png" }
anim { frame0 "shot1" frame1 "shot1" fps 4 }
frame { frame "shot1" tile0 6872 tile1 6872 }
anim { frame0 "shot2" frame1 "shot9" fps 40 }
frame { frame "shot2" tile0 6873 tile1 6874 }
hud { tile0 6872 tile1 6874 xadd -0.38 yadd 0.3 zadd 0 angadd 0 }
}
model "models/nailgun_pick/nailgun_pick.md2" {
scale 2.6 shade 0
skin { pal 0 file "models/nailgun_pick/nailgun_pick.png" }
skin { pal 1 file "models/nailgun_pick/nailgun_pickB.png" }
skin { pal 2 file "models/nailgun_pick/nailgun_pickR.png" }
skin { pal 8 file "models/nailgun_pick/nailgun_pickG.png" }
anim { frame0 "shot1" frame1 "shot1" fps 4 }
frame { frame "shot1" tile0 6871 tile1 6871 }
}
Danukem, on 03 January 2023 - 08:13 PM, said:
useractor notenemy DOORBOARDED 120
{
cstat 273 // blocked, hittable
ifaction 0
{
ifhitweapon
{ ifstrength 100
action ONE
break
}
else
{ ifstrength 80
action TWO
break
}
else
{ ifstrength 60
action THREE
break
}
else
{ ifstrength 40
action FOUR
break
}
else
{ ifstrength 20
action FIVE
break
}
else
{ ifstrength 0
killit
}
}
}
enda
MC84, on 05 January 2023 - 12:56 PM, said:
Danukem, on 05 January 2023 - 01:13 PM, said:
This post has been edited by MC84: 05 January 2023 - 02:06 PM