View Single Post
Old 12-09-2010   #7
PHCC
Too fast for you to see me.
 
PHCC's Avatar
Default

Well, messed up a bit more,and I made the player hides in the ground as I wanted(Thx to Prime 2.0 and Morph). But the problem now is that, when I call the function to the player object, it makes all the players hides in the ground. And one more problem, I can't stop the action, so, when I press the jump button, I go out from the ground, but after a while, I automatically hide in the ground again.

Here is the SOC:

Spoiler:

FRAME 1997
SPRITENUMBER = 0
SPRITESUBNUMBER = 1
DURATION = 100
NEXT = 1995
ACTION A_RandomStateRange
VAR1 = 1996
VAR2 = 1993

FRAME 1996
SPRITENUMBER = 0
SPRITESUBNUMBER = 1
DURATION = 100
NEXT = 1997
ACTION A_RemoteAction
VAR1 = 0
VAR2 = 1993


FRAME 1992
SPRITENUMBER = 0
SPRITESUBNUMBER = 1
DURATION = 1
NEXT = 1995
ACTION A_FindTarget
VAR1 = 1
VAR2 = 0

FRAME 1995
SPRITENUMBER = 0
SPRITESUBNUMBER = 1
DURATION = 35
NEXT = 1993
ACTION A_MinusCheck
VAR1 = 0
VAR2 = 0


FRAME 1994
SPRITENUMBER = 0
SPRITESUBNUMBER = 1
DURATION = 100
NEXT = 0
ACTION A_MinusPopup
VAR1 = 0
VAR2 = 0

Thing 400
MAPTHINGNUM = -1
SPAWNSTATE = 1992
SPAWNHEALTH = 100
SEESTATE = 1996
SEESOUND = 0
REACTIONTIME = 32
ATTACKSOUND = 0
PAINSTATE = 0
PAINSOUND = 0
MELEESTATE = 0
MISSILESTATE = 0
DEATHSTATE = 0
DEATHSOUND = 0
XDEATHSTATE = 0
ACTIVESOUND = 0
RAISESTATE = 0
FLAGS = 2147483657

FRAME 1993
SPRITENUMBER = 193
SPRITESUBNUMBER = 1
DURATION = 1
NEXT = 1994
ACTION A_MinusDigging
VAR1 = 0
VAR2 = 0


EDIT:One question: If I had to use A_RemoteAction to call the player object to dig, wouldn't I need to use A_RemoteAction to make the player pop-up from the ground(and then stop the action)?

EDIT2:Well, I removed some states, and it turned into this:

Spoiler:
FRAME 1996
SPRITENUMBER = 193
SPRITESUBNUMBER = 0
DURATION = 100
NEXT = 1995
ACTION A_RemoteAction
VAR1 = 0
VAR2 = 1993

FRAME 1995
SPRITENUMBER = 193
SPRITESUBNUMBER = 0
DURATION = 100
NEXT = 0
ACTION A_RemoteAction
VAR1 = 0
VAR2 = 1994


FRAME 1992
SPRITENUMBER = 193
SPRITESUBNUMBER = 0
DURATION = 1
NEXT = 1996
ACTION A_FindTarget
VAR1 = 1
VAR2 = 0

Thing 400
MAPTHINGNUM = -1
SPAWNSTATE = 1992
SPAWNHEALTH = 100
SEESTATE = 1996
SEESOUND = 0
REACTIONTIME = 32
ATTACKSOUND = 0
PAINSTATE = 0
PAINSOUND = 0
MELEESTATE = 0
MISSILESTATE = 0
DEATHSTATE = 0
DEATHSOUND = 0
XDEATHSTATE = 0
ACTIVESOUND = 0
RAISESTATE = 0
FLAGS = 2147483657

FRAME 1993
SPRITENUMBER = 193
SPRITESUBNUMBER = 0
DURATION = 0
NEXT = 0
ACTION A_MinusDigging
VAR1 = 0
VAR2 = 0

FRAME 1994
SPRITENUMBER = 193
SPRITESUBNUMBER = 0
DURATION = 0
NEXT = 0
ACTION A_MinusPopup
VAR1 = 0
VAR2 = 0


Now, for an odd reason, it isn't affecting the others players, but it's affecting the crawlas(they can't detect you if you're underground, but can't detect the others players too).And it isn't working correctly, sometimes that I thok, it just doesn't work correct.And I don't know how to change the sprites when digging. I'll post a link with a wad that I usually don't use, that is using the SOC.

http://www.4shared.com/file/zr_hoBgT/Lari2.html

Well, the SOC is almost done!! =)

EDIT3: Another problem, how do I make the player doesn't jump or spin while underground??
__________________
My YouTube channel:
http://www.youtube.com/user/PedroHCC10
PHCC is offline   Reply With Quote