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 to Use Errant Shield Block in FPSC 1.17

Author
Message
Crian
15
Years of Service
User Offline
Joined: 31st Aug 2010
Location: Other World
Posted: 31st Aug 2010 13:00
Sorry Guys, i'm pretty new to FPSC!
Someone know how to Use Errant Shield Block in FPSC 1.17?
thanks
Nbt
16
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 31st Aug 2010 19:57
block is an AirMod command (now built into FPSC), so you can add a blocking animation in the gunspec of a weapon and you use the plrblocking=1 to detect if the player is blocking for AI scripts etc to reduce damage received etc.

Crian
15
Years of Service
User Offline
Joined: 31st Aug 2010
Location: Other World
Posted: 1st Sep 2010 10:42
emh..
Which files should I change?
I tried to change the one in : scriptbank / Weapon.fpi?
and then load it in AI script / Main
nothing happened

can you put an example? please
Nbt
16
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 1st Sep 2010 20:13 Edited at: 1st Sep 2010 20:18
The weapon script is just for weapon pickup. You need to either edit an existing or make a new shoot/melee script for the enemies, adding support for plrblocking detection to reduce/prevent damage received.

Something like this I guess?? (I'm poop at scripting so forgive any mistakes)


Errant AI
19
Years of Service
User Offline
Joined: 24th Aug 2006
Location:
Posted: 1st Sep 2010 23:55
That script is a good example, NBT.

@Crian- You may also need to change something in the shield's gunspec because the shields default to the "compound blocking" settings used by Project Blue (which are a bit different). You'll probably need to comment those out and uncomment the "simple blocking" settings which are compatible with 117+.
Crian
15
Years of Service
User Offline
Joined: 31st Aug 2010
Location: Other World
Posted: 2nd Sep 2010 13:12
Thanks guys,
About the enemy script i put it in (enemy) AI scripts/shoots, right?
But i can't still see the blocking animation
Well, so i must go in gamecore/guns/EAI_FANTASY/SHIELD1AF/gunspec.txt
But i don't understand how it should be?



I tried but I failed, please show me how!
Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 3rd Sep 2010 00:05
I'm not sure the enemies have a blocking animation to be used with the shield. I'm fairly sure that that would require the enemy themselves to be reanimated for it.


The one and only,


Crian
15
Years of Service
User Offline
Joined: 31st Aug 2010
Location: Other World
Posted: 3rd Sep 2010 10:42
no,
I mean, i'm not able to change the code to use the shield!
i found the gunspec but i did not understand how to use it and what script to change.
Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 4th Sep 2010 03:03
If you're talking about the player using the shield, it should be as simple as equipping the shield and right-clicking to perform a block. I'm also not sure if there is a way to change the shidlt o make it use another key/click for blocking.


The one and only,


Errant AI
19
Years of Service
User Offline
Joined: 24th Aug 2006
Location:
Posted: 4th Sep 2010 06:52 Edited at: 4th Sep 2010 06:55
Change to this...



You'll noticed I uncommented (in the Airmod section)
block=x,y

and commented out (in the PlysMod section)
blockstart=x,y, blockidle=x,y and blockend=x,y

In the game you press right click to block (as Ply pointed out) and if you time it correctly with the character's script attack sequence the strike will be "blocked". Each time you press right click with the shield, the condition plrusingblock=1 becomes true for a brief moment.
Crian
15
Years of Service
User Offline
Joined: 31st Aug 2010
Location: Other World
Posted: 4th Sep 2010 11:53
Thanks Errant,
now it work, my error in airmod was this



another thing, I tried adding this script to the goblins of fantasypack:



..but the the shield doesn't block the goblin attack.
Last things, but there is no way to use the shield in left hand while using a weapon in right?
Is it possible only with PlysMod?

Thanks for your patience!
Soviet176
16
Years of Service
User Offline
Joined: 19th Sep 2009
Location: Volgograd
Posted: 4th Sep 2010 22:20
So by changing the gunspec we can actually use the shield to block bullets by holding down right click?

Putting fear back into sliced bread since 4th May 2010
Errant AI
19
Years of Service
User Offline
Joined: 24th Aug 2006
Location:
Posted: 5th Sep 2010 03:04 Edited at: 5th Sep 2010 03:08
Quote: "So by changing the gunspec we can actually use the shield to block bullets by holding down right click?"


Only with Project Blue.

Quote: "Last things, but there is no way to use the shield in left hand while using a weapon in right?"


Only with Project Blue.


Change your script to:



Technically the script you had should be working but I changed it to not do any damage (rather than reduced damage)and changed the sound to a clank sound when you successfully block so it should be more obvious and the red won't flash. Keep in mind your timing has to be very good when blocking.

Also, You can probably use the new aisetmeleedamage and aiusemelee FPI to do the damage rather than plraddhealth which is sort of obsolete for melee combat now.
SilverCrow
15
Years of Service
User Offline
Joined: 21st Aug 2010
Location:
Posted: 5th Sep 2010 03:46
Errant AI, can you PLEASE read your email. I have been chasing you around TGC. I don't know if you have missed my messages but please!

ASTECH
19
Years of Service
User Offline
Joined: 18th Jul 2007
Location:
Posted: 5th Sep 2010 04:55
I for one second that. We really wish a reply or further look into
this matter. I assure you we are 100% serious man. You owe yourself
to look into what we have to say.



Crian
15
Years of Service
User Offline
Joined: 31st Aug 2010
Location: Other World
Posted: 6th Sep 2010 10:35
Quote: "Also, You can probably use the new aisetmeleedamage and aiusemelee FPI to do the damage rather than plraddhealth which is sort of obsolete for melee combat now."

Where can I find these scripts?
i haven't in scriptbank.
last things, in project blue, have i to change some script for use the shield block, or there are already scripts suitable for this?
Plystire
23
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 7th Sep 2010 03:22
If you're using PB, then you can use the gunspec options for "Ply's Mod" that should be included in the gunspec for the shield. Those would include the compound blocking (being able to hold down the block button) as well as the ability to block bullets.

Aside from blocking melee attacks, you don't need a script to make these features work, you just need to have the gunspec options set up for them.

Also, the melee blocking works the same with the Ply's Mod blocking options as it does for the AirMod blocking options, so no change to your script is needed if you already have it set up for use with the AirMod block.


The one and only,


Crian
15
Years of Service
User Offline
Joined: 31st Aug 2010
Location: Other World
Posted: 8th Sep 2010 11:26
Quote: "If you're using PB, then you can use the gunspec options for "Ply's Mod" that should be included in the gunspec for the shield. Those would include the compound blocking (being able to hold down the block button) as well as the ability to block bullets.
"


Awesome, thanks to everyone!

Login to post a reply

Server time is: 2026-07-26 05:22:29
Your offset time is: 2026-07-26 05:22:29