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 / How do I stop enemies from pushing me around?

Author
Message
incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 2nd Dec 2008 08:03
I am using anubis1-slowfast.fpi to run the anubis in model pack 17.

When the enemy sees me he attacks and causes damage and that is just fine. However, he also pushes me around until he pushes me right through a wall or something.

Could someone that has model pack 17 look at the script and please tell me how to prevent this?

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd Dec 2008 16:06
...I've had this problem, too.

Even before MP 17 came out, some enemies would rush me, and push me clean through walls, and to a certain plunging death, if I didn't kill them off before they reached me.

I'm not sure that anything is out of the ordinary with Anubis' collision box, but it's the dynamic collision between the player and character, that's forcing the player backward.

I believe that Anubis believes the player to be still out of attack range, and that's why he continues plowing forward. Try modifying range values, in the .fpi script. That most likely will remedy the problem you're having...




incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 2nd Dec 2008 17:53
But what should I change to keep that from happening?

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd Dec 2008 18:11
...I don't have FPSC installed on this computer.

Post the excerpt from the anubis1-slowfast.fpi script, where it's referencing movement towards the player, and I'll take a peek at it...


incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 2nd Dec 2008 18:38
I am not sure if posting even a partial script from a purchased model pack would be the thing to do. I just thought that if anyone has the pack they could just look at the script and let me know what can be done.

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd Dec 2008 18:51
...I completely understand. That's why I suggested only an excerpt.

You would need to open the .fpi file, and look through the lines, until you locate information referencing player distance, animation, and movement instruction.

Off the top of my head, see if you can locate

plrdistfurther=

plrdistwithin=


instruction, and try adjusting the values you locate there...


incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 2nd Dec 2008 19:16
I found all of the tags called:

plrdistfurther=

plrdistwithin=

I increased them to 100 and the player still gets pushed through the wall.

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd Dec 2008 19:33 Edited at: 2nd Dec 2008 19:34
:::::SHRUGS:::::

...I'm not sure that just changing all of the occurances to a higher value will remedy the situation.

Basically, this is what I believe is currently happening (and what the character is being told), when Anubis comes after you, to attack:

1. Okay, I see the player
2. Okay, I'm going to move to the player
3. Okay, I'm close enough, so now I'll attack the player
but
I'm still not close enough to the player to stop, so I'll keep
trying to get close enough


My best guess:

I think the breakdown is occuring right around the time Anubis is reaching the distance to attack, but the value instructing the character to stop is higher than the value triggering the attack.

This might help you to pinpoint the area of the script to alter. Precise surgery, over the shotgun approach...


incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 2nd Dec 2008 19:38
What is the value that tells Anubis to stop? That is what I need.

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 2nd Dec 2008 20:26
...it should be one of the

plrdistwithin=

values.

Typically in most scripts, it might read similar to

plrdistwithin=50

but I'm not sure what values bond1 used in this particular script.

If all else fails, I would consider dropping bond1 an email, and asking him specifically how he recommends correcting the problem...


Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Dec 2008 22:14
Posting a script from a model pack shouldn't be infringing on the license. Does the license explicitly state that you cannot redistribute the script? Besides, I think what the modellers want to protect most are the models and media that come with it, not necessarily the scripts that make them run in FPSC. (Everything BUT the script, can be used in applications other than FPSC)


Althooooough, I didn't write the license so I can only make assumptions here.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 3rd Dec 2008 02:51
Ok, I will take a chance.



Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Dec 2008 09:26
Here's your problem:


If the enemy is WITHIN 75 units, he still moves forward. Take out the "movefore=10" portion of that line, and also the movefore in this line:






The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 4th Dec 2008 19:18
Now it works just the way I need it to. Ty Plystire! I have made the same change to all the script that make enemies push me through walls and the all work great now.

Patience and tolerance are the keys to the passage of knowledge. Even the ones that know the most started with many questions.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Dec 2008 20:13
Glad I could help.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.

Login to post a reply

Server time is: 2024-11-24 16:23:37
Your offset time is: 2024-11-24 16:23:37