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 / I know this is somewhere else - suicide bomber

Author
Message
someonerules
19
Years of Service
User Offline
Joined: 12th Oct 2005
Location: In your closet.
Posted: 2nd Nov 2005 03:50
I know this was posted somewhere else but i can't find it soooo...anyway i am wokring on a script to make a suicide bomber. This is the first script i have ever tried to write so there are problems. Am i evn close?! Please help!
BULLSHOCK 2
Retired Moderator
19
Years of Service
User Offline
Joined: 14th Jun 2005
Location: Shocking Bulls
Posted: 2nd Nov 2005 18:15 Edited at: 2nd Nov 2005 18:15
we cant get your source, use the code snippet tag....

also...if you want a suicide bomber entity...use the granade enemy script from ea

someonerules
19
Years of Service
User Offline
Joined: 12th Oct 2005
Location: In your closet.
Posted: 3rd Nov 2005 03:12
The code snipet thing didn't work for some reason! anyway heres the code:

;Artificial Intelligence Script

;Header

desc = sucide bomber

;Triggers

:state=0,plrdistfurther=100:state=1
:state=0,plrdistwithin=101:state=2,animate=1
:state=1,plrelevfurther=10,plrcanbeseen=46,plringunsight:freeze,settarget,animate=1,
:state=1:followplr=1,animate=5
:state=1:state=2
:state=2,rotatetoplr:state=3
:state=3,plrwithinzone=1:plraddhealth=-505:state=0


;End of Script


i am probably far off
someonerules
19
Years of Service
User Offline
Joined: 12th Oct 2005
Location: In your closet.
Posted: 4th Nov 2005 05:07
hello? anyone?
madhouse
19
Years of Service
User Offline
Joined: 28th May 2005
Location: Arizona
Posted: 4th Nov 2005 20:09
Does the explosion have to be animated into the character or can u use a decal? If so how would you write that in?

I opened the window and influenza (relax - the world is not coming to an end)
someonerules
19
Years of Service
User Offline
Joined: 12th Oct 2005
Location: In your closet.
Posted: 5th Nov 2005 00:10
Works perfect! thanx sooo much!!
madhouse
19
Years of Service
User Offline
Joined: 28th May 2005
Location: Arizona
Posted: 7th Nov 2005 15:22
Thanks Conjured.

Now for another question. I am trying to make the Mad Bomber explode before the player dies. Ya know...they see the explosion? I tried messing with the decals in the FPI and in the entity properties. No dice.

I opened the window and influenza (relax - the world is not coming to an end)
madhouse
19
Years of Service
User Offline
Joined: 28th May 2005
Location: Arizona
Posted: 7th Nov 2005 22:20 Edited at: 7th Nov 2005 22:35
I can make the HUD. Just gimme some specs on size.

The Mad Bomber stops animating after the explosion and my small decal just keeps going and going and going. Niether of them fade and even reappear when the player is back - though this time the bomber is just a static image at this point.



OK

let me have it..what am I doing wrong?

I opened the window and influenza (relax - the world is not coming to an end)
madhouse
19
Years of Service
User Offline
Joined: 28th May 2005
Location: Arizona
Posted: 7th Nov 2005 22:49
Ya..I did that originally..the Mad Bomber (here on in referred to as MB) just kept running. When the play gets another go the MB is just running in place as a static entity.

Quote: "Strange things are afoot at the Circle K, Bill"


I opened the window and influenza (relax - the world is not coming to an end)
Merranvo
19
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 7th Nov 2005 22:50
Well, since I am suppose to be "nit picking" scripts now...
YOUR WRONG!!!
HAHAHAHAHAHA

:state=0:state=1
:state=1,plrdistfurther=300:animate=1
:state=1,plrdistwithin=300:rotatetoplr,movefore=2,animate=5
:state=1,plrwithinzone=1:sound=audiobank\user\explode.wav,plraddhealth=-500,state=2,destroy

(Your not suppose to destroy an entity more then once anyways)

Your mod has been erased by a signature.

=ChrisB=: I hate n00bs, n00bs hate me! Lets get a gun and kill all the n00bies!!!
madhouse
19
Years of Service
User Offline
Joined: 28th May 2005
Location: Arizona
Posted: 7th Nov 2005 22:56 Edited at: 7th Nov 2005 22:58
No offense to either of you because both are a big help.

But the MB still keeps running and running and running...

I am sure he will be quite lean and cut but the end of this.

Quote: "I never tried a rundecal, so I don't know what this does...yet...brb
"


the way I am using it there is just a small explosion at the feet. I am working on that to make it bigger.

BTW - the reason I am going to such lengths to use this is - I am working on a game as part of a marketing project for my company and this would work in perfect. And yes...you guys will get credits.

I opened the window and influenza (relax - the world is not coming to an end)
madhouse
19
Years of Service
User Offline
Joined: 28th May 2005
Location: Arizona
Posted: 7th Nov 2005 23:15
PERFECT!!!!

Thanks you two!

Man, you guys could get a lot accomplished if you would set aside your differences. But these things happen even in the best of homes.

I opened the window and influenza (relax - the world is not coming to an end)
Merranvo
19
Years of Service
User Offline
Joined: 24th May 2005
Location: That ^ is a Orange
Posted: 8th Nov 2005 00:11
What did you do?

So what if you can't multi-destroy an object. Your not suppose to run a command more then once.

And to push the nit-pickyism.

Why do you even care to run the destroy script? set that to default, and use the main. Having multiple scripts is crazy.

Evil is Those Who See Blind.

Your mod has been erased by a signature.

=ChrisB=: I hate n00bs, n00bs hate me! Lets get a gun and kill all the n00bies!!!
someonerules
19
Years of Service
User Offline
Joined: 12th Oct 2005
Location: In your closet.
Posted: 10th Dec 2005 02:29
Hey haven't seen this in a while but WOW! TY!
Sunflash
19
Years of Service
User Offline
Joined: 28th Jun 2005
Location: Seattle, Wa
Posted: 12th Dec 2005 01:01
could someone post the actual suicide bomb script? It's no help to people searching the forums if you never post your progress

When FPSC develops enough, lets make a Redwall game!

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 12th Dec 2005 07:57 Edited at: 22nd Dec 2005 04:09
All my posts were erased when my account was spoofed.
Anyway, here is the code I use for my MadBomber.



You'll note that I used a path to a USER folder in the AUDIOBANK to call an EXPLODE.WAV

Replace that Path to point to whatever sound you want to use.

Post Script:
You'll also want to increase the SPEED of the entity.
I like mine at about 400.


~ ~
BOOM

Whatever you can imagine, you can animate. --- Walt Disney
All too easy. --- Darth Vader
Just do it! --- Nike
Sunflash
19
Years of Service
User Offline
Joined: 28th Jun 2005
Location: Seattle, Wa
Posted: 13th Dec 2005 07:01
Thanks Conjured! That really helps!

When FPSC develops enough, lets make a Redwall game!

someonerules
19
Years of Service
User Offline
Joined: 12th Oct 2005
Location: In your closet.
Posted: 20th Dec 2005 19:00
Thanks! i love it!

and by the way! what happened to your account?
Sunflash
19
Years of Service
User Offline
Joined: 28th Jun 2005
Location: Seattle, Wa
Posted: 22nd Dec 2005 01:30
Umm, the explosion decal won't play. What can I do to fix this?

When FPSC develops enough, lets make a Redwall game!

Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 22nd Dec 2005 02:57
here is the Riker9 script

:plrdistwithin=600:followplr
:plrdistwithin=400:addhealth=-500

if CB put the command in. addhealth will remove enemy health. so, BOOM!

Anti-Noob Justice League, an ANJL of Mercy.
[url=ochanicon.gif]
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 22nd Dec 2005 04:13 Edited at: 22nd Dec 2005 04:17
Quote: "Umm, the explosion decal won't play. What can I do to fix this?"


It should play, but its small. (watch his feet)
Can you see a black spot where it blew up when you return?
If it is not playing, then I don't know how to fix it.
Sorry





Whatever you can imagine, you can animate. --- Walt Disney
All too easy. --- Darth Vader
Just do it! --- Nike

Login to post a reply

Server time is: 2024-11-21 17:39:49
Your offset time is: 2024-11-21 17:39:49