Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Zombie dead.fpi with blocking feature ! ( Need a little help )

Author
Message
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 17th Oct 2009 12:42
I want to add a blocking feature to my game ( for melee attacks only ) , I made a little script based on zombiedead.fpi script , It's attached , But i need a little help on it .
I want to split the animation of the zombie doctor so it stops when the weapon in his hand reaches you , then check if the player's blocking , If he is reapeat the animation , If he isn't , plr's damaged and the second spart of the animation plays .
I thought about changing the numper of frames in animaion 92 ( attack anim ) so it's splitted to 2 anims , But will this affect the zombie doc ?
Enjoy the scrip , thanks.

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest

Attachments

Login to view attachments
A Games
15
Years of Service
User Offline
Joined: 22nd Aug 2009
Location:
Posted: 17th Oct 2009 20:58
try this

:state=0:animate=93,state=10
:state=10,plrdistwithin=100:animate=94,state=11
:state=11,(sorry my fpi scripter is busted to it is sepost to be animation end):state=1
:state=1,plrdistfurther=40:rotatetoplr,movefore=2,animate=2
:state=1,plrdistwithin=40,rateoffire:rotateplr,setframe=92,state=2
:state=2:incframe=92
:state=2,frameatend=92,plrblocking=1:state=1,sound=audiobank\misc\bite.wav
:state=2,frameatend=92,plrblocking=0:plraddhealth=-20,state=1

JP SILVER
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 17th Oct 2009 21:41
This script is the same I made !
What am I talking about is to split animation , Here's an example :
The animation is 10-20 frames , I want to split it to 10-15 , 16-20 , so the first one plays when the char attacks , And if he isn't blocking the second plays , Got me ?

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest

Login to post a reply

Server time is: 2024-11-25 07:22:07
Your offset time is: 2024-11-25 07:22:07