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 / Enemies Dual-Weilding

Author
Message
sps999
17
Years of Service
User Offline
Joined: 23rd Oct 2007
Location: On my Computer
Posted: 28th Oct 2007 22:35
I got this really cool helicopter model but theres one thimg I want it to do, have two different weapons. One Bazooka that shoot every, I dont know... ten seconds or so and also it having a rapid-fire machine gun. Is this possible to script?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 29th Oct 2007 21:08
No, not without some rather forceful and massive changes to the engine. Enemies are pre-programmed to only be allowed 1 weapon at a time.

Although, I'm sure if someone were to come up with a script that had the enemy swap between the two weapons repeatedly, then it may appear as though the enemy has those two weapons in their inventory.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

FPSC Scripting Tutorials - http://forum.thegamecreators.com/?m=forum_view&t=116527&b=23
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 30th Oct 2007 14:41
Actually dude, I'm gonna contradict you and say it is possible, although it will need some alterations at the modelling level.

You will need one animation with a firespot bone over the rocket pack, and one animation with the firespot bone over the MG.

Then you need to create a rocket launcher, but make the Vweap file a tiny (almost invisible) cube.

Set it's weapon as the almost invisible rocket launcher.

In it's script when it attacks it will randomise between rocket attacks and MG attacks.
If it's shooting the rocket launcher, you play the animation with the firespot over the rocket launcher, run the decal and "useweapon". If it's firing the machine gun you run the animation with the firespot over the machinegun, run the decal, and decrease the player's health (just don't use weapon).
There. 2 different weapons, 1 model, no source mod needed.

You only issue will be FPSC's hard coded animations on animated characters with weapons. As you will need two attack animations, you'll have to sacrafice one of its other animations, (like strafe or crouch)

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Oct 2007 23:30
Well, I assumed he wanted a script for it since he posted this in the Scripts board, but yeah that sounds like a good way around it.

Would be a little choppy looking the way FPSC handles characters with weapons, but would work nonetheless.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

FPSC Scripting Tutorials - http://forum.thegamecreators.com/?m=forum_view&t=116527&b=23
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 1st Nov 2007 03:19
Quote: "Would be a little choppy looking the way FPSC handles characters with weapons, but would work nonetheless."


Why would it be choppy?

sps999
17
Years of Service
User Offline
Joined: 23rd Oct 2007
Location: On my Computer
Posted: 3rd Nov 2007 05:05 Edited at: 11th Nov 2007 15:23
Well, Butters, I'm kinda new at this and I have no idea what you just told me to do. It makes sense I just don't know how to change fire spot bones and whatever. Could you explain how to do it or maybe a link to a tutorial or something. Thanks.

Edit: Also I don't know if I could do this because this isn't my Helicopter Model so I don't have the files to edit it.
sps999
17
Years of Service
User Offline
Joined: 23rd Oct 2007
Location: On my Computer
Posted: 16th Nov 2007 03:51
Anyone get my above post? Because it only displays when I'm signed on as sps999. BTW here it is.

Quote: "Well, Butters, I'm kinda new at this and I have no idea what you just told me to do. It makes sense I just don't know how to change fire spot bones and whatever. Could you explain how to do it or maybe a link to a tutorial or something. Thanks.

Edit: Also I don't know if I could do this because this isn't my Helicopter Model so I don't have the files to edit it. "

Login to post a reply

Server time is: 2024-11-24 01:40:15
Your offset time is: 2024-11-24 01:40:15