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 / model pack 18 script to stop enemies from pushing you through walls

Author
Message
Dark Vomit
16
Years of Service
User Offline
Joined: 9th May 2009
Location: San Diego, California
Posted: 9th May 2009 13:54
Hey everyone,

I'm having a terrible time figuring out how to change the script so that the enemeies of the fantasy pack do not push me through a wall when attacking. Namely... I'm using the Satyr melee character. I've done a lot of searching through the forums and can't seem to find the info... although... I am sure this has been covered in the past.
What info I have found... says to delete the line "movefore=10,"
When I do that. problem sloved. however... when he attacks... he does not cause any damage at all to me. I tried changing "movefore=10" to "moveback=10"... and same thing... enemy does not cause me any damage. thinking that the command would not push me?

-Thank you in advance for anyone who might able to help me out on this...
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 9th May 2009 17:26
This is a problem normally solved by changing proximity values. Damage is normally triggered by the plrdistwithin= value and this is normally what you would change. The entity is trying to get too close to the player, and pushing him. This happens when larger entities try to use the normal scripts.

If this kind of trigger is used, then increase the plrdistwithin= value to a higher number. Without seeing the code, that's all I can think of.

Brian.

Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 9th May 2009 17:27
Can you please post the script.

michael x
16
Years of Service
User Offline
Joined: 10th Jan 2009
Location: Cybertron
Posted: 9th May 2009 20:29
easy remove the movefore from state2.

the standard line looks like this.

:state=2,plrdistfurther=80:rotatetoplr,runfore=10,animate=94
:state=2,plrdistwithin=80:rotatetoplr,movefore=10,animate=95

now change like this;

:state=2,plrdistfurther=60:rotatetoplr,runfore=10,animate=94
:state=2,plrdistwithin=60:rotatetoplr,animate=93

same with state4;

:state=4,plrdistfurther=80:rotatetoplr,runfore=10,animate=94
:state=4,plrdistwithin=80:rotatetoplr,movefore=10,animate=95

change to this;

:state=4,plrdistfurther=60:rotatetoplr,runfore=10,animate=94
:state=4,plrdistwithin=60:rotatetoplr,animate=95

enemy to close change this line;

:state=4,animationover=100,plrdistwithin=40:plraddhealth=-10

to

:state=4,animationover=100,plrdistwithin=60:plraddhealth=-1

do the same with stat2 as well. from plrdis 40 to 60.
if dont want the character to run just place movefore instead of runfore. use notepad its really simple and learn to read scripts.

here download the ocfpscguide. have fun.

more than what meets the eye

Attachments

Login to view attachments
Dark Vomit
16
Years of Service
User Offline
Joined: 9th May 2009
Location: San Diego, California
Posted: 9th May 2009 21:02
Hey!

Thanks for the quick reply.
I am a newbie and trying really hard to understand the scripting process a bit clearer.

I will download for sure and check it out...
Thank you.

I went ahead and changed the script via Michael's advice.

It fixed the problem. The enemy does not push me through the wall...

However, when testing he does not cause any damage to me again when he runs up to me and slashes...

...
Is it kosher to post the script?
Dark Vomit
16
Years of Service
User Offline
Joined: 9th May 2009
Location: San Diego, California
Posted: 10th May 2009 00:21
hmmmm...
I changed line...

:state=2,plrdistfurther=80:rotatetoplr,runfore=10,animate=94

to

:state=2,plrdistfurther=80:rotatetoplr,movefore=1,animate=94

and line...

:state=4,plrdistfurther=80:rotatetoplr,runfore=10,animate=94

to

:state=4,plrdistfurther=80:rotatetoplr,movefore=1,animate=94

--
This seem to make it less difficult for the enemy to run up and attack and then push me through a wall.
He still runs up and attacks and pushes me back...
( which is cool... that is what I want. )
but I slide along the wall backward... now.

The only time I get pushed through a wall is when he pins me in a corner.
I can accept that.
I will just design the room in such a way that it will be difficult for the character to do that to the player.

Also...
Slowing him down from 100 speed to 50 speed also helps a lot...
but then the character is far too slow.

I'll keep trying different variations and if I get any better results I will be sure to post it.
michael x
16
Years of Service
User Offline
Joined: 10th Jan 2009
Location: Cybertron
Posted: 10th May 2009 02:43
here I just test it ran it my self this script works and you will take damage. without push back.

more than what meets the eye

Attachments

Login to view attachments
bond1
19
Years of Service
User Offline
Joined: 27th Oct 2005
Location:
Posted: 10th May 2009 03:10 Edited at: 10th May 2009 03:11
To be honest I like the pushing back behavior, I think it adds a sense of aggressiveness to the characters. I'm not sure why people don't like this. Just take care building your levels and they won't push you through corners.

BUT...model pack 18 characters bought from the store don't push you back, they have a version of the script that fixes an animation bug that existed prior to version 1.09.

----------------------------------------
"bond1 - You see this name, you think dirty."
Dark Vomit
16
Years of Service
User Offline
Joined: 9th May 2009
Location: San Diego, California
Posted: 10th May 2009 05:05
hmmm.

There must be something wrong I'm doing...
I tried it again and the guy swings at me... but still no damage.

I did purchase the model pack 18 from the store.
I am running version 1.15.003

I purchased the model pack just a couple of weeks ago...
-Was this animation bug fixed since then?

I love the characters and monsters in it.

Attachments

Login to view attachments
Dark Vomit
16
Years of Service
User Offline
Joined: 9th May 2009
Location: San Diego, California
Posted: 10th May 2009 05:15
Hey Michael,

I went ahead and tried it... again.

I've been staring so long at the computer... my eyeballs are ready to bleed.
I did do something wrong...

It works freakin' beautiful, now.

Thank you tremndously...
I've spent an embarrassing amount of time on this hang up... and waaaay happy to be moving on...

Thank you.

Login to post a reply

Server time is: 2025-05-24 11:39:43
Your offset time is: 2025-05-24 11:39:43