SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 10-13-2017   #1
Smith The Icefox
Smith "Seal" Kitsune
 
Smith The Icefox's Avatar
Default Needing SOCs Samples

I'M NOT ASKING FOR TEAMS FOR MY MOD, I'M ASKING WHERE I CAN FOUND SOC SAMPLES!!!
Is there some sample of projectile SOC script?
Where can i find it? I'm working in SOCs for MEGACRAWLA and i need to see some SOC structure of projectile (i've already searched in SRB2 Wiki)
OFF-TOPIC QUESTION:
How can i fix lava damage not working properly? (delay)
__________________
My Discord: Seal#2962|Netgames Name: SSK or MEGA
Current working in: SSK Pack (Script and Map Pack)

Last edited by Smith The Icefox; 10-13-2017 at 06:31 PM.
Smith The Icefox is offline   Reply With Quote
Old 10-13-2017   #2
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

Do you mean projectile? I think the articles for some enemies and bosses have Object info tables for any projectiles they use at least. If you know how you define Object types using SOC then they should pretty easy to make a SOC script out of referring to them.

You did also check the "projectile" page right?


Regarding lava damage, what about it exactly is not working? "delay" doesn't really clear up what you mean.
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record.
Monster Iestyn is offline   Reply With Quote
Old 10-13-2017   #3
Smith The Icefox
Smith "Seal" Kitsune
 
Smith The Icefox's Avatar
Default

Quote:
Originally Posted by Monster Iestyn View Post
Do you mean projectile? I think the articles for some enemies and bosses have Object info tables for any projectiles they use at least. If you know how you define Object types using SOC then they should pretty easy to make a SOC script out of referring to them.

You did also check the "projectile" page right?


Regarding lava damage, what about it exactly is not working? "delay" doesn't really clear up what you mean.
I know how to define object types, but just enemies or objects not projectiles (also, thanks for correcting my grammar)
I've already read this page but, it doesn't give me an idea how to use projectile types, so i did a huge mistake ;-;

Code:
State S_CYBRAKDEMONMISSILE
SpriteName = RCKT
SpriteFrame = A
Duration = 70
Next = S_POSS_RUN2
Action = A_SplitShot
Var1 = 0
Var2 = 3

Object MT_CYBRAKDEMON_MISSILE
SpawnState = S_CYBRAKDEMONMISSILE
SeeState = S_CYBRAKDEMONMISSILE
SeeSound = sfx_BRAKRL
ReactionTime = 70
MeleeState = S_NULL
MissileState = S_NULL
DeathState =S_CYBRAKDEMONMISSILE_EXPLODE1
XDeathState = S_NULL
DeathSound = sfx_BRAKRX
Speed = 3
Radius = 24*FRACUNIT
Height = 32*FRACUNIT
DispOffset = 0
Mass = 100
Damage = 0
ActiveSound = sfx_None
Flags = |MF_SUPERFIRE|MF2_EXPLOSION|MF2_RAILRING
RaiseState = S_NULL
I know, everything here is wrong but, there's no page to show an example so, that's not my fault.
About the lava... it's having delay with damage
Nevermind! I just forgot to put "Damage(fire)" effect in it but, i also noticed that i have already did it, but for some reason i had to do it again (maybe i just didn't saved the map :p)
Anyway, thank you!
__________________
My Discord: Seal#2962|Netgames Name: SSK or MEGA
Current working in: SSK Pack (Script and Map Pack)

Last edited by Smith The Icefox; 10-13-2017 at 07:25 PM. Reason: HUGE MISTAKE ON SOCs
Smith The Icefox is offline   Reply With Quote
Old 10-13-2017   #4
Monster Iestyn
Friendly Neighbour-Hood
Moderator
 
Monster Iestyn's Avatar
Default

The projectile page isn't clear on how to use projectiles because there are many ways to use them. For instance it lists many actions that do exactly that, such as the A_SplitShot one you've chosen to use there. =P

That said I'm not sure if you're using A_SplitShot correctly there...

From A_SplitShot's wiki article (https://wiki.srb2.org/wiki/A_SplitShot):
Quote:
Var1 determines the horizontal offset from the target's position to aim for; the offset is added to one missile and subtracted from the other. Var2's lower 16 bits determine the Object type of the missile that is shot. Var2's upper 16 bits determine the height offset the missiles are shot from.
if you're confused about the lower/upper 16 bits thing for Var2, it just means you need to set Var2 to "MT_OBJECTTYPE+(height<<16)", MT_OBJECTTYPE being the type of Object you want the actor to fire and height being the height offset (relative to the z position of the actor's bottom).
__________________
My page stuffed full of MIDI goodness!
The Hitchhiker's Guide to the Robo-Hoodiverse
Timeline of Sonic Robo Blast History!

That's an uppercase i, not a lowercase L, for the record.
Monster Iestyn is offline   Reply With Quote
Old 10-13-2017   #5
Smith The Icefox
Smith "Seal" Kitsune
 
Smith The Icefox's Avatar
Default

Quote:
Originally Posted by Monster Iestyn View Post
The projectile page isn't clear on how to use projectiles because there are many ways to use them. For instance it lists many actions that do exactly that, such as the A_SplitShot one you've chosen to use there. =P

That said I'm not sure if you're using A_SplitShot correctly there...

From A_SplitShot's wiki article (https://wiki.srb2.org/wiki/A_SplitShot):


if you're confused about the lower/upper 16 bits thing for Var2, it just means you need to set Var2 to "MT_OBJECTTYPE+(height<<16)", MT_OBJECTTYPE being the type of Object you want the actor to fire and height being the height offset (relative to the z position of the actor's bottom).
Okay, i'll be trying now.

---------- Post added at 05:58 PM ---------- Previous post was at 05:20 PM ----------

EDIT: I'm really bad at scripting... i'm done!
__________________
My Discord: Seal#2962|Netgames Name: SSK or MEGA
Current working in: SSK Pack (Script and Map Pack)
Smith The Icefox is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.