Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jackrobbman

Pages: [1] 2 3 4 5 6 ... 17
1
Modification Help / Re: Pain Sound Variation
« on: November 30, 2020, 09:11:58 PM »
Everything had the varied pain sounds.

Give it a shot

Think I will. Thanks!

functions that possibly play the sound:

function Player::playDeathCry(){} - you can overwrite this to play different sounds even based on the datablock

i donít remember if thereís a pain sound function but if there is itís most likely the same thing you can do with it, if not you can make it so the sound is blank on a datablock and package damage function (shapebase)

The pain..er...code (not a code guy) that folks have been using for custom pain sounds is this:

   useCustomPainEffects = true;
   painSound     = PainSound;
   JumpSound   = JumpSound;
   deathSound    = DeathSound;


Not sure how this works or why, but with those three, you can implement any sounds you want for pain, jumping, and death. I was wondering if it would've been possible to make it so that it plays one of three pain sounds at random. Kind of like what Jaydee did here:

Code: [Select]
function MG42Projectile::onCollision(%this, %obj, %col, %fade, %pos, %normal)
{
Parent::onCollision(%this, %obj, %col, %fade, %pos, %normal);
%random = getRandom(1,3);
switch(%random)
{
case 1:
serverplay3d(impact1HitSound,%pos);
case 2:
serverplay3d(impact2HitSound,%pos);
case 3:
serverplay3d(impact3HitSound,%pos);
default:
echo("Error on MG42");
}
}

That enables each bullet to make one of three sounds at random whenever it hits. (Not that I need to explain that to you since you can read this stuff like I read comics. I'm just stating it so that you know that I know what it does.) I was wondering if I could do this same thing with the...painSound...code. Would it be as easy as adding something like this after the equal sign? Cause that would be right up my alley in terms of what I'm actually able to do. It would also...apparently...be the first playertype that plays varied pain sounds in the history of blockland. I think. I've not come across a single playertype or bot that has varied pain sounds or death sounds, which is either indicative of how easy it would be, or how impossible it would be.

2
Modification Help / Re: Pain Sound Variation
« on: November 29, 2020, 07:35:54 PM »
Not sure I've heard of that. Were the pain sounds varied based on the playertype, or was it like the death yells where every player/bot has the same, varied, pain sounds?


3
Modification Help / Re: Pain Sound Variation
« on: November 28, 2020, 10:30:09 PM »
I know that Death Yells addon or whatever can sort of perform something that replaces the death sound of everything with a random parameter. Not sure how exactly it works but I edit the script a lot to put in my own stuff. Perhaps something can be done similarly to pain sounds?

Yeah, I did the same a while back with an Overwatch build. The problem is that, as you said, everything would have the same variation of pain sounds. So If I wanted a human to make varied human sounds but a robot to make varied...robot sounds, I couldn't do that using that add-on. Appreciate the input though!

4
Modification Help / Pain Sound Variation
« on: November 28, 2020, 06:00:36 PM »
So I'm trying to make it so that a playertype or bot will play one of three (or more) sounds when damaged. I believe Conan told me that this IS possible when I mistakenly posted this in help.

Can anyone tell me how? I'm honestly surprised no ones done it yet. Is it that easy, or is it that complicated?

P.S: I'm no code-person, so I pretty much know next to nothing about torque. I just know how to swap pain sounds and a bunch of other little stuff I've picked up over the years.

5
Help / Re: Pain Sound Variation
« on: November 28, 2020, 09:06:23 AM »
Yes, but this is a modification help/suggestions and requests post, as its not an issue with blockland but rather a desired modification to the game.

Gotcha. That makes sense. : L

6
Help / Pain Sound Variation
« on: November 27, 2020, 12:47:35 PM »
So I noticed we can edit the sounds a playertype or bot will make if they are damaged. What I can't figure out is a way to make it so that the playertype or bot will play a different sound at random when damaged. So If I got three pain sounds in the add-on file, it'll play one of those three at random when the playertype or bot is damaged.

That possible?

7
Forum Games / Re: Describe the above user's avatar with one word v2
« on: November 26, 2020, 07:55:46 PM »
Discomfort

8
Forum Games / Re: The stuffty Superpower Game v4
« on: November 26, 2020, 07:54:47 PM »
The ghost loudly plays Never Gonna Give You Up with a kazoo nonstop until you decide to violently rupture your own ear-drums by clapping your ears repeatedly.


The ability to play any instrument perfectly without ever having to learn.

9
Forum Games / Re: Ban the User above you (woah 50 pages)
« on: November 21, 2020, 05:09:22 PM »
User was banned for dissing the Dark Side and being rebel scum.

10
Forum Games / Re: The stuffty Superpower Game v4
« on: November 21, 2020, 05:07:06 PM »
You singlehandedly cause a zombie apocalypse.

The power to solve any murder case in seconds.

11
Forum Games / Re: The stuffty Superpower Game v4
« on: November 19, 2020, 06:40:44 PM »
A nerdy man-child picks you up and breaks you in half when he sees you picking on kids. As you spend the rest of your life paralyzed in a hospital bed, you lament thinking that becoming a bully would make you feel better and realize that you were only making the bullies that bullied you into bullying feel justified in their actions. 



The ability to become Chuck Norris

12
Forum Games / Re: The stuffty Superpower Game v4
« on: November 14, 2020, 10:58:31 PM »
Granted, but you get kicked off the baseball team for not being able to throw the ball

The power to become sane

13
Forum Games / Re: Ban the User above you (woah 50 pages)
« on: November 08, 2020, 07:31:17 PM »
User was banned for being unattractive while shirtless.

14
Forum Games / Re: Describe the above user's avatar with one word v2
« on: November 08, 2020, 07:26:07 PM »
Dank

15
Forum Games / Re: The stuffty Superpower Game v4
« on: November 08, 2020, 07:23:20 PM »
Granted, but you find out that nothing ever pays off and become an alcoholic to forget.

The ability to create revolutionary add-ons.

Pages: [1] 2 3 4 5 6 ... 17