SRB2 Message Board  

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

Reply
 
Thread Tools Search this Thread
Old 2 Weeks Ago   #1
Shadowater
Default Any good tutorials on making projectiles?

Namely I wanted to make a custom projectile for my character mod (planning on trying out a few variants - including a slow moving one that can break Power Character walls if I can figure that out - to see what works best with this) but the SOC tutorial is based around enemy characters and I'm not sure where in the game's files the SOCs for projectiles are stored, if at all, to give me a template to work off of (I learn stuff like this best when I can mess around with existing stuff to figure out the ins and outs)

Honestly, if I could even just get my hands on a SOC of Metal Sonic's single large energy ball, I could figure out the rest from there

Also, additional question: I assume the projectile SOC and its sprites have to come before the character SOC and sprites in the WAD for it to load correctly? Or would that not matter so long as it's all in the same WAD?
__________________
Wow my account was edgy. Working on a revamp of my old Tails Doll mod
Shadowater is offline   Reply With Quote
Old 2 Weeks Ago   #2
Marcos
The Marcos
 
Marcos's Avatar
Default

I don't think there's any tutorial on that, but you can use an already existing missile as reference to create your own one, such as Fang's cork or Brak's missile.
http://wiki.srb2.org/wiki/Brak_Eggman
https://wiki.srb2.org/wiki/Fang_(Boss)
These pages have the object info and states of both the cork and missile, if that's what you're looking for.
Marcos is offline   Reply With Quote
Old 2 Weeks Ago   #3
Shadowater
Default

Yep that's perfect, thanks!


EDIT: For anybody curious and looking for a sample SOC for projectiles, here is what I got once I rooted out the errors:

Quote:
MT_NANI

State S_TURRETLASER
SpriteName = ARMA
SpriteFrame = A
Duration = 70
Next = S_POSS_RUN2
Action = A_ShootBullet

Object MT_NANI
SpawnState = S_TURRETLASER
SeeState = S_NULL
SeeSound = sfx_None
AttackSound = sfx_None
PainState = S_NULL
PainSound = sfx_None
MeleeState = S_NULL
MissileState = S_NULL
DeathState = S_TURRETLASEREXPLODE1
XDeathState = S_NULL
DeathSound = sfx_turhit
ActiveSound = sfx_None
RaiseState = S_NULL
SpawnHealth = 1000
ReactionTime = 8
PainChance = 0
Speed = 20*FRACUNIT
Radius = 16*FRACUNIT
Height = 8*FRACUNIT
DispOffset = 300
Mass = 0
Damage = 1
Flags = MF_NOBLOCKMAP|MF_MISSILE|MF_NOGRAVITY

Tweaking it more, but if you want something to edit, put this in exactly as is, but change MT_NANI to be MT_(whatever you name your SOC) and change the S_SKIN's revitem to revitem = MT_(whatever you name your SOC)
__________________
Wow my account was edgy. Working on a revamp of my old Tails Doll mod

Last edited by Shadowater; 2 Weeks Ago at 07:53 PM. Reason: Giving relevant info for others who may get stuck and need a template
Shadowater 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:00 AM.


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