Author Topic: Runners Vs. Snipers Sniper Rifle  (Read 1642 times)

I request an Old School Rifle tweak that has a random chance to defy Ray Casting and Fix in which when the user returns not as a Standard Player, but as a No-Jet Player. All that is required is a Download link to a server.cs file that contains the modified command script. Thank you, that is all.

what do you mean by defy ray casting?
and does it change the player datablock?

1. The weapon's projectile does not take into account the landing surfaces ray casting toggle.
Ex. I fired at a brick with ray casting on, It fired through that brick.

2. If your datablock is No-Jet Player, and you equip the weapon along with going into the scope and exiting it, your datablock will become Standard Player

You dont need all of these loving bolds

1. The weapon's projectile does not take into account the landing surfaces ray casting toggle.
Ex. I fired at a brick with ray casting on, It fired through that brick.

2. If your datablock is No-Jet Player, and you equip the weapon along with going into the scope and exiting it, your datablock will become Standard Player
so you want the current default functionality of the OSR to be randomized? currently it shoots through bricks, but now you want it to have a chance not to?

and I just checked the code for what it swaps your datablock to, it swaps it to standard if you're outside a minigame or if that's the default datablock of the minigame
if(!isObject(%client.minigame))
{
   %client.player.setDataBlock("PlayerStandardArmor");
}else{
   %client.player.setdatablock(%client.minigame.playerDatablock);
}

so you want the current default functionality of the OSR to be randomized? currently it shoots through bricks, but now you want it to have a chance not to?

and I just checked the code for what it swaps your datablock to, it swaps it to standard if you're outside a minigame or if that's the default datablock of the minigame
if(!isObject(%client.minigame))
{
   %client.player.setDataBlock("PlayerStandardArmor");
}else{
   %client.player.setdatablock(%client.minigame.playerDatablock);
}

Your first statement was correct, yes. Your second statement was false; The OSR outside of a minigame does accomplish what it was intended to do, but it fails to return to the minigame's specified datablock. I would like this element to be removed entirely. Instead, I would like it to transfer to the No-Jet Player datablock without fail, ignoring all of the tasks at hand.

You dont need all of these loving bolds

Well excuse me grammar police, i'm just trying to get my point across the board.
« Last Edit: July 29, 2015, 03:43:29 PM by Lyoko1337 »

didn't realize it ever broke, since it used to work fine
make a minigame with no-jet as the default playertype, and post what echo(findClientByName(ly).minigame.playerDatablock); returns
if it isn't the no-jet player, then the minigames have probably been updated to use different variables

but if you replace the whole if statement with just the true part, and change the datablock, it should do what you want

as for the randomization, do you want it to randomly have a chance at penetrating the whole way/none of the way, or random chance at each brick to go through it?

You dont need all of these loving bolds
Also, bullets being able to travel through bricks with a random chance would be cool for other guns.

didn't realize it ever broke, since it used to work fine
make a minigame with no-jet as the default playertype, and post what echo(findClientByName(ly).minigame.playerDatablock); returns
if it isn't the no-jet player, then the minigames have probably been updated to use different variables

but if you replace the whole if statement with just the true part, and change the datablock, it should do what you want

as for the randomization, do you want it to randomly have a chance at penetrating the whole way/none of the way, or random chance at each brick to go through it?
For the first statement, I'm not using the default minigame client, I'm using a community made client (Slayer). My question is, would Slayer and the OSR's .cs file have any confliction with each other?

For the second statement, I want a 45% chance to penetrate through one wall, and a 5% chance to penetrate through 2 walls.

the OSR probably doesn't conflict with slayer, but without testing I don't know if slayer uses/sets the default playertype for the minigame or if it uses it's own, separate, values, which would be what is messing up the OSR returning to the no-jet player
changing the code as I said to shouldn't affect anything except for the OSR

the OSR probably doesn't conflict with slayer, but without testing I don't know if slayer uses/sets the default playertype for the minigame or if it uses it's own, separate, values, which would be what is messing up the OSR returning to the no-jet player
changing the code as I said to shouldn't affect anything except for the OSR
I thank you for helping me find and change the code, It now accomplishes what it was intended to do. The other issue at hand is further randomization. How would you go about this?

You dont need all of these loving bolds
piss off i really dont see how you had to respond like that