SOC to sourcecode conversation

Status
Not open for further replies.

Morph

Member
I just read threw some parts of the srb2 sourcecode and found out that the functions called by the soc actions (A_Chase for example) are located inside the p_enemy.c file. I tried to insert some functions into the socstates... for example:

NEXT = 50+3
or
VAR1 = actor->angle

Or something like that but it seems that SRB2 is only willing to use numbers.

NEXT = 50+3
returns 50

NEXT = (50+3)
returns 0

NEXT = rand(100)
returns 0

I just have a little experience with programming and even worse I just used perl. Which uses an interpreter instead of a compiler.

Now I am wondering if it is possible to insert variables (the game uses) or functions inside a soc? Or is this impossible because implementing functions would require a compilation process?
 
Status
Not open for further replies.

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

Back
Top