Author Topic: Rocketjumper Edit  (Read 1487 times)

hey guys. so im building this challenge and part of it requires a rocket jumper. the minigame requires self and weapons damage to be on, so i cant just disable weapon damage. i need a rocketjumper edited so it only effects the person who fired it, and no one else. i cant host my server without this edit so i really need it.

i also need either a script or an event that i can use to give players different items depending on where they are. in some levels i need them to have the rocketjumper, in others a grapple, etc. i cant use onminigamespawn>player>additem because it effects everyone in the whole minigame. so a spawn even like onplayerspawn>player>additem would be cool, or set zones or something with a script. nmv i found a way around this

thanks guys, these mods would help me put out my server so please consiter making them ;)

heres a link to the rocketjumper so you dont have to go find it >>download<<
« Last Edit: April 23, 2014, 07:55:58 PM by The Brighter Dark »


Additem was already made. Click here for it.
i don't need the event add item, i need a spawn event or a way to only give player the item when they are in a specific area, and i cant use minigame events because it effects everyone in the minigame, not just the person who activated the event.

Bump, i need this to be made so i can host my server.

Out of curiosity, why is it so important that players only hit themselves?

Will making a rocket launcher with no damage be a viable solution to this?

Will making a rocket launcher with no damage be a viable solution to this?
The problem was that damage was required in order to activate the explosion force, therefore I set it to 1 damage. I'm positive probably wrong but I don't think it's possible to make it only do self damage, however I am a very bad and inexperienced coder so I'm almost positive I could be wrong.

Maybe the projectile could have a very short lifespan?

the problem is that you can shoot it at other players and fling them to their death. so making the projectile not effect other players or something would be a viable solution.

Maybe the projectile could have a very short lifespan?
Or perhaps only travel a certain distance before despawning.


here's a version where only the shooter gets the explosion force

I basically just added this to jumper.cs:
Code: [Select]
package SelfImpulse
{
function RocketJLauncherProjectile::RadiusImpulse(%this, %obj, %col, %dist, %pos, %impulse, %idk)
{
%newImpulse = 0;

if(%obj.client == %col.client)
%newImpulse = %impulse;

Parent::RadiusImpulse(%this, %obj, %col, %dist, %pos, %newImpulse, %idk);
}
};

ActivatePackage(SelfImpulse);

It only applies to the rocket jumper so you shouldn't worry about the regular rocket launcher not dealing any impulse force or something.

here's a version where only the shooter gets the explosion force

I basically just added this to jumper.cs:
Code: [Select]
package SelfImpulse
{
function RocketJLauncherProjectile::RadiusImpulse(%this, %obj, %col, %dist, %pos, %impulse, %idk)
{
%newImpulse = 0;

if(%obj.client == %col.client)
%newImpulse = %impulse;

Parent::RadiusImpulse(%this, %obj, %col, %dist, %pos, %newImpulse, %idk);
}
};

ActivatePackage(SelfImpulse);

It only applies to the rocket jumper so you shouldn't worry about the regular rocket launcher not dealing any impulse force or something.
Thanks so much, this is loads better!