Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Each capsule must have lweapon b
- 2. Add ball->Misc[CAUGHT]
- 3. Add ball->Misc[OLDSTEP]
- 3. \
- 5. In ball.check_hitvaus
- if it hits the vaus, check: if ( catch == cancatch )
- then
- if !launched
- b->Misc[CAUGHT] = 1
- b->Misc[OLDSTEP] - b->Step
- b->Step = 0
- launched = false
- in movevaus, if !launched
- if b->Misc[CAUGHT]
- when launching
- b->Step = b->Misc[OLDSTEP]
- b->Misc[CAUGHT] = 0
- when launched = false,
- if a powerup --other thananother catch-- hits the vaus, restore b->Step from Misc[OLDSTEP]
- this is why powerups all need a param of lweapon b
- store diffrencebetween v>X and b->X when catching, and save it in b->Misc[CAUGHT_dist], then
- when !launched, instead of the normal position on the vaus, reposition the ball, using this
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement