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 / fpsc drums!

Author
Message
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 21st Apr 2008 22:20
I was bored, and I was thinking, and I've learned how to make drums in fpsc work! I can't model, so I cant do all of this, but I will take the task on to help myself learn to script. The script will be simple. The concept is if the drum takes damage, it plays a sound. Now combine this with a model for a single drum stick, and ply's mod! just dual the stick, and swing away! I'll release the scripts when I finish.

Nerds will rule the world one day. All hail runescape's Nerd Meistro and his Equipment Caravan.
Also, all hail RS's Grenade god
hes mad whack XD
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 21st Apr 2008 23:08
alright, now I feel stupid. It doesn't work how I would like it to. Can anyone give me a hint on how to fix it?



Nerds will rule the world one day. All hail runescape's Nerd Meistro and his Equipment Caravan.
Also, all hail RS's Grenade god
hes mad whack XD
Opposing force
18
Years of Service
User Offline
Joined: 10th Aug 2005
Location: England
Posted: 21st Apr 2008 23:15
Quote: "It doesn't work how I would like it to"


That's a bit vague. Could you explain, in detail what you want it to do and why it isn't doing it now?

http://www.freewebs.com/teammegabasic/
For low price FPSC and Dark BASIC media packs.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Apr 2008 23:47
I think he wants it to play the sound when the player hits the drum with the drumstick.

At least, that's how normal drums work, lol.


Your script looks like it would work just fine. The drum would eventually die, though, given enough play practice on it.


Can you describe what it's doing, compared to what you want it to be doing?


The one and only,
~PlystirE~

meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 22nd Apr 2008 00:07 Edited at: 22nd Apr 2008 00:09
It doesnt play the sound, I have tried with and without invincibilty. If it wont work for invincibility, I could just set the health really high. Or is it possible to add health to the entity?
-EDIT-
and yes, I want it to play the sound when I hit it with the drumstick

Nerds will rule the world one day. All hail runescape's Nerd Meistro and his Equipment Caravan.
Also, all hail RS's Grenade god
hes mad whack XD
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 22nd Apr 2008 00:24
You did make the entity dynamic.... didn't you?

Best.

meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 22nd Apr 2008 00:32
yes

Nerds will rule the world one day. All hail runescape's Nerd Meistro and his Equipment Caravan.
Also, all hail RS's Grenade god
hes mad whack XD
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 22nd Apr 2008 00:33
Then it should work, unless it can't find your sound. Did you navigate to it, or type it in?

Best.

meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 22nd Apr 2008 02:08 Edited at: 22nd Apr 2008 02:48
navigated, I dont have a drum sound, so I used a dog barking noise that I think came with the Psionic3d dog. I dont know. *scratches head* FPI is puzzling, just like the the jump glitch when using a nightvision script I made, lol. Someone can feel free to try this out for me and see if they can get it working if they wanted to. Kudos if you do!
-EDIT- I would apprecieate it if you posted back with a hint on how to get it to work, thanks!
Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 22nd Apr 2008 03:49 Edited at: 22nd Apr 2008 04:22
PROBLEM:
The shotdamage for entites is internal except for characters.
So, your drum has to be a character in order to script a response to shot damage.

That means it needs ischaracter = 1 in its FPE file.
However, characters have sound sets instead of using the $0 and $1 fields like regular entities.

SOLUTION:
Make the drum a character, but call the sound by using a specific path as in this
.

You'll notice that I used the flush.ogg and that was intentional for testing.
If you don't already have that sound, then check out the attachment.

Quote: "The drum would eventually die, though, given enough play practice on it. "

That is right.
Invulnerability will bypass the shotdamage condition, but you could add alot of health.

Quote: "Or is it possible to add health to the entity?"

Only when placing it in the editor, but not in the game using scripts.
Only the player can have health added using FPI scripts.

Don't forget that the drum can respawn without delay.
So, if you set the properties right in the drum's FPE file, then it could respawn ready to play.
Using a large amount of health with a delayed respawn could enable a timeout should we destroy the drum for missed licks, broken sticks or other forms of drummer mayhem.



Have fun!

Don't forget to visit Conjured Entertainment

Attachments

Login to view attachments
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 22nd Apr 2008 08:42
Well, if he's using my mod, then he CAN add health back into the entity by using "entityaddhealth=X".


But, good idea with the character, CE, I completely forgot about that restriction.


Here's a way for you to detect if the entity got hurt:



That'll give the entity 10 health whenever it's health falls below 100.


The one and only,
~PlystirE~

meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 22nd Apr 2008 13:17
sweet, thanks guys. Help is always nice. alright, I've redone the script with that line you gave me Ply, if i still need the old stuff, let me know, (or if it still needs to be a char). I can't test it now, i dont have fpsc access. Feel free to test if you want.



Also, with drums being a char, I would have to change the destroy script, cuz I renamed my blood splat script fadecorpse so it is set as default. I dont want drums squirting blood on me, lol.
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 22nd Apr 2008 22:08
alright, it works, thanks for the help!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 23rd Apr 2008 04:11
Awesome! Think you could make a video of it for us?

Or maybe even a screenshot?


The one and only,
~PlystirE~

Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 23rd Apr 2008 04:37 Edited at: 23rd Apr 2008 05:05
Quote: "Also, with drums being a char, I would have to change the destroy script, cuz I renamed my blood splat script fadecorpse so it is set as default. I dont want drums squirting blood on me, lol."

Now, there is something that I forgot about...the blood.



This idea inspires me to make a drum set in FPSC using the keys with scancodekeypressed=x instead of the weapon.

Quote: "alright, it works, thanks for the help! "

ROCK ON!

Don't forget to visit Conjured Entertainment

meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 23rd Apr 2008 22:07
I would, but I dont have models, and screenshots dont incorporate sound. lol. I'm gonna try and learn modeling with blender, so I can actually do this. I would make a vid of me shooting a box, but last time i tried a video it didnt work (on here or youtube)so I cont do much. Also, with the use of a lot of scancodekeypressed and states and sounds, a guitar script could be made (using function keys and enter). I'll work on that sometime. (much more advanced script, lol)
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 24th Apr 2008 00:39
Just imagine how advanced of a script a vehicle would be, lmao.


The one and only,
~PlystirE~

Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 24th Apr 2008 01:43 Edited at: 24th Apr 2008 01:48
Quote: "Just imagine how advanced of a script a vehicle would be, lmao"

That is what I am working on next...a vehicle. (yes you'll be able to drive it, but only for 1 player games)

Quote: "Also, with the use of a lot of scancodekeypressed and states and sounds, a guitar script could be made "

I was thinking the same thing.
Also, why couldn't a rockband or gutiar hero guitar be used like the xbox360 controller can with xpadder?

Don't forget to visit Conjured Entertainment

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 24th Apr 2008 01:52
I'm sure you could, but it'd be MUCH MUCH easier to just program a DBP Guitar Hero rather than trying to make an FPSC Guitar Hero/Rock Band.


The one and only,
~PlystirE~

Conjured Entertainment
AGK Developer
18
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 24th Apr 2008 03:12 Edited at: 24th Apr 2008 03:33
Quote: "I'm sure you could, but it'd be MUCH MUCH easier to just program a DBP Guitar Hero rather than trying to make an FPSC Guitar Hero/Rock Band."

That is what I am talking about Plystire.
Only I am talking about using FPSC or DBP.
The reference to GH or RB was only for the controller.
You are right though, doing it in DBP would be easier than in FPSC.
But don't forget, this is an FPSC forum... ...and he's bored!

Don't forget to visit Conjured Entertainment

meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 24th Apr 2008 05:22 Edited at: 24th Apr 2008 05:22
very, does anyone know If I can change my name? I wanna call myself the novelty scripter, that seems to be all i'm intent on making
Maniac Modeler
16
Years of Service
User Offline
Joined: 15th Jan 2008
Location:
Posted: 27th Apr 2008 18:02
ill make a drum model for you, heck ill make a whole drum set. sybols too.
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 28th Apr 2008 05:11
seriosly? cool! feel free, cuz i tried blender, much to confusing. only modeling program im good w/ is autodesk inventor lol
Maniac Modeler
16
Years of Service
User Offline
Joined: 15th Jan 2008
Location:
Posted: 29th Apr 2008 01:49
ok its just an fpsc ready model, an the texture is very simple, il post ina few
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 29th Apr 2008 04:52
sweet, thanx

Login to post a reply

Server time is: 2024-04-26 16:30:42
Your offset time is: 2024-04-26 16:30:42