Nailing players to a wall when shot

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Max_Damage_uk

New Member
May 20, 2002
75
0
0
62
uk
Visit site
As I see it.

A ragdoll is spawned for each client.
The client then takes over controll of that ragdolls movement and position.

I got the ragdolls to move in the same direction on each client by grabbing the ragdolls and moving them through a vector.

All the clients see the same thing( a ragdoll flying through the air.)
But the ragdolls are all owned by the seperate clients. I just gave all the clients the vector to move their ragdolls through.
I only understand about 20% of this replication stuff.

MAx
 

Rythmix

New Member
Sep 1, 2004
84
0
0
Max_Damage_uk said:
As I see it.

A ragdoll is spawned for each client.
The client then takes over controll of that ragdolls movement and position.

I got the ragdolls to move in the same direction on each client by grabbing the ragdolls and moving them through a vector.

All the clients see the same thing( a ragdoll flying through the air.)
But the ragdolls are all owned by the seperate clients. I just gave all the clients the vector to move their ragdolls through.
I only understand about 20% of this replication stuff.

MAx

So is the mutator coming along soon? This sounds incredibly cool.
 

Max_Damage_uk

New Member
May 20, 2002
75
0
0
62
uk
Visit site
Testing it now online.

I'll Have the Mutator in about a week.

I'll put it on my 20 player server and give you the IP.

We can have a stake out!

ATM its like Insta gib.....but more insta pinned to the wall... :lol:
 

Rythmix

New Member
Sep 1, 2004
84
0
0
Max_Damage_uk said:
Testing it now online.

I'll Have the Mutator in about a week.

I'll put it on my 20 player server and give you the IP.

We can have a stake out!

ATM its like Insta gib.....but more insta pinned to the wall... :lol:

When can we join the test server?! *waits in anticipation* :D
 

Rythmix

New Member
Sep 1, 2004
84
0
0
BADA$$ :) now, what mod is this that its going to be in? anyway that throwing axe from the first stake.wmv movie will be available in this mutator too? or will that be for the mod?
 

pospi

New Member
Jun 30, 2003
298
0
0
www.pospi.cjb.net
smartass

i mean, YOU DA MAN!!

i always had problems with them being destroyed because theyd clip through world geometry. But this works great!
 

Max_Damage_uk

New Member
May 20, 2002
75
0
0
62
uk
Visit site
pospi said:
smartass

i mean, YOU DA MAN!!

i always had problems with them being destroyed because theyd clip through world geometry. But this works great!

Thanks m8,

I'm adding a bloodpooler and antigib to this so the bodies dont gib when hit and a pool of blood expands around the body. Stakes hitting the walls now stick into the walls and floors.

I just need to make the stake orientate to face the wall better. I'm making a gun model now.
 

Rythmix

New Member
Sep 1, 2004
84
0
0
this was great fun last night! I wonder tho, can it be used as a non-instakill weapon? what happens when you turn the damage down? I was thinking like .....*stake*.. ow, *stake*..ow, *stake*..ow, *stake*.. PINNED!
 

Max_Damage_uk

New Member
May 20, 2002
75
0
0
62
uk
Visit site
lol,

Yes that works just fine.

You end up with about 4 stakes in your head, running around. NOW that is funny.

I also have it so the stakes in the walls can be picked up. :)
 

Rythmix

New Member
Sep 1, 2004
84
0
0
Cool, now how about a non-arena type? so we can switch other weapons too, and if we run out of ammo on the nailer, we have to go run and pick some up from the ones stuck in the wall, or dodge other people stakes and pick them up and shoot them back.
 

pospi

New Member
Jun 30, 2003
298
0
0
www.pospi.cjb.net
at least make it an option - i think this thing would work much better as a standalone weapon - but some will disagree so why not give the choice? easy enough to do.

maybe the instant kill could be an option too, dont know how you feel about that.

antigib is really really easy to do, in the damageType for the weapon all you need to set is:
bAlwaysSevers=False
bAlwaysGibs=False
bNeverSevers=True

and youre laughing
 

Max_Damage_uk

New Member
May 20, 2002
75
0
0
62
uk
Visit site
Nice one pospi, thanks for your help m8.

How about stakegun + throwing axe , taking say 3 hits to kill. both axes and stakes stick to the walls and can be picked up.

I would have to put at least 1 ammo pick in the level.

so ;

instastake mutator(As is)
stakereplace mutator(replaces a ut weapon)
axestakearena(3 hits to kill)
 

Rythmix

New Member
Sep 1, 2004
84
0
0
Max_Damage_uk said:
Nice one pospi, thanks for your help m8.

How about stakegun + throwing axe , taking say 3 hits to kill. both axes and stakes stick to the walls and can be picked up.

I would have to put at least 1 ammo pick in the level.

so ;

instastake mutator(As is)
stakereplace mutator(replaces a ut weapon)
axestakearena(3 hits to kill)

WOO! DRINKS ARE ON ME!
 

pospi

New Member
Jun 30, 2003
298
0
0
www.pospi.cjb.net
How come use 3 mutators to do that?
You could do it all in one, might be cleaner.

In the mutator's FillPlayInfo(), you just add the required variables to the mutator config menus the usual way. put some descriptions for them in GetDescriptionText(). Give them a default value with defaultProperties.
Then when it comes to your other classes, you just use if statements to change the weapon's behaviour etc, using

class'MutatorClass'.default.variableName

The defaults are automatically changed for you with those 2 functions in the mutator. That's always worked for me in the past. Someone may like to verify though. You may have to make the mutator a SimulatedProxy, not sure.

I also find its nicer to put a config(something) in the class definition of your mutator so that all its settings are stored in their own INI file. Doesnt clutter up the user.ini that way.
 

porkmanii

New Member
Sep 9, 2004
129
0
0
Australia, Qld
pospi said:
I also find its nicer to put a config(something) in the class definition of your mutator so that all its settings are stored in their own INI file. Doesnt clutter up the user.ini that way.
Only classes with "config(user)" in the class declaration would save their settings to the user.ini. Some examples are, the HUD(s), PlayerController, weapons, and the GUI. Unless you specify otherwise, mutators (and most other objects) save their config settings to the game ini (ie. UT2004.ini).

And what's wrong with "cluttering up" the game ini? Better than cluttering up the System folder, in my opinion. In the rare occasions when you are going to edit your game ini file, it's easy to do a search for whatever it is you are going to edit.