So what's hard coded now?

Status
Not open for further replies.

glaber

Emblem Radar Ready
For those of us who love to mod and use pices of code from different badniks to create other things. It would be a good thing to know what's hard coded and what's not.

Last I heard, Metal Robotnik's Missals were hardcoded and durring 1.09.4 what determined the SDURF's jump strength was also hardcoded as well as Jetteson Gunner's shooting code that allowed it to shoot more than one time.

So What all is hardcoded in 2.0?
 
That question's kind of vague and it would be impossible to sum up every little hardcoded aspect.

The term hardcoded means that some sort of code parts such as functions or parameters are only accessible via source code. If you want to change them you have to rewrite and recompile the code.
This applies to the engine itself and nearly everything that makes no use of external data input.

In case of soc actions you have to devide in:
- those which are only used by one certain kind of object for one certain purpose
- and those which are more commonly used.

The former ones are, for example, nearly all enemy thinkers which contain the name of the enemy itself: A_JetJawChomp, A_PointyThink, A_SnailerThink, A_VultureCheck, A_MonitorPop... and so on and so on
They do not make use of external parameters (var1 & var2) and you can not do much with them as long as you don't want to use them for the exact same purpose they were created for.
These are almost entirely hardcoded (some of their effects can be changed by the mobj's stats).

The latter ones are used by many kinds of objects or were actually implemented for modding purposes and therefor have to be more flexible. They make extensive use of external parameters like, for example: A_CapeChase, A_SpawnObjectRelative, A_SetObjectFlags, A_Thrust... etc.
These guarantee a better access but, of course, have a hardcoded core, too.



If in doubt you will have to browse through every single soc action's description (or its original source code) to find out. :|:|
 
So I assume that means we will still have Eggheads shooting like Robotnik (see SRB2Christmas 2008 for 1.09.4)
 
Kaysakado knowes what I'm talking about, but Morph is right too.
A_JetgShoot is one of the ones I'm wondering about.

So far, in 1.09.4, any enemy that wasn't a Jetteson or Turret that used A_JetgShoot could only shoot once.
 
Sorry to double post, but Is what determines how high the SDURF jumps still hard coded to only work for the SDURF and Fireball/Puma?
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top