Skip to content

Commit

Permalink
egg - adjust raycast width
Browse files Browse the repository at this point in the history
egg - adjust raycast width to be wide enough to avoid spawning over randall
  • Loading branch information
UnclePunch committed Jan 12, 2019
1 parent b663aae commit 4913321
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ASM/Custom Events/Custom Event Code.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1307,22 +1307,23 @@ b exit
bl RandFloat
fmr f22,f1

.set EggSpawnGroundWidth,8
#Check If Egg is Above Ground
fmr f1,f21
fmr f2,f22
bl FindGroundUnderCoordinate
cmpwi r3,0x0
beq EggsThinkSpawnLoop
#Check Left
li r3,2
li r3,EggSpawnGroundWidth
bl IntToFloat
fsubs f1,f21,f1
fmr f2,f22
bl FindGroundUnderCoordinate
cmpwi r3,0x0
beq EggsThinkSpawnLoop
#Check Right
li r3,2
li r3,EggSpawnGroundWidth
bl IntToFloat
fadds f1,f21,f1
fmr f2,f22
Expand Down

0 comments on commit 4913321

Please sign in to comment.