June 18, 2021, 04:18:12 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1] 2

Author Topic: Rocket jump grief prevention  (Read 4128 times)

cmb

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 337
  • Mario Bros
Rocket jump grief prevention
« on: February 17, 2013, 10:46:09 am »

When Iever I play rocket jump maps there is usually a spy that ties to stab everyone in spawn.This can get annoying and can piss you of :z3:.
Now this plugin can keep those pesky plumbers spies from doing this.
This plugin prevents griefers from going Heavy,Pyro,or Spy on a rj map.

   HOW TO USE:
in order for this plugin to take effect, all rocket jump map file names must start with
the prefix of rj_ (including the _ ) [rj must be in lower case too.]
Example:
rj_iceclimbers
rj_rocket

when there is no rj_ in the file, the plugin wont take effect, so you can host these with other maps as well. :c1:

here is the code:
Code: [Select]
object_event_add(GameServer, ev_step, ev_step_end, '


var mapstring;
mapstring = string(global.currentMap)
var isrj;
isrj = string_copy(mapstring,1,3);
if isrj = "rj_"

with Character

 
{

 
 if player.class == CLASS_SPY or player.class == CLASS_HEAVY or player.class == CLASS_PYRO


 {
  
  
  sendEventPlayerDeath(player, player, noone, BID_FAREWELL);
  doEventPlayerDeath(player, player, noone, BID_FAREWELL);
  ds_list_find_index(global.players, player.id)
  player.class = CLASS_SOLDIER
  ServerPlayerChangeclass(player.id, player.class, global.sendBuffer);
  
        


        }
 }

 


')

I give tons of credit Orpheon for helping me when I encountered problems when making this plugin.Thank you Orpheon! :woot:
« Last Edit: February 17, 2013, 10:46:36 am by Perfect Cell »
Logged

Kalir

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 488
  • no one here
Re: Rocket jump grief prevention
« Reply #1 on: February 17, 2013, 12:03:27 pm »

Another thing that would help prevent griefing is stopping explosions from affecting other players adversely. Rocketjumping is one thing on its own, but quite another when three other classes are trying to rocketjump alongside you.

Preventing spawncamping in lieu of knowing how to rocketjump is a good idea though.
Logged
Praise Cheibriados.

bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962
Re: Rocket jump grief prevention
« Reply #2 on: February 18, 2013, 01:38:11 am »

This is actually a really useful plugin :c1:

You should make it just check "rj" by default though, half my rj maps aren't underscored.
Logged

cmb

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 337
  • Mario Bros
Re: Rocket jump grief prevention
« Reply #3 on: February 18, 2013, 06:39:53 pm »

Another thing that would help prevent griefing is stopping explosions from affecting other players adversely. Rocketjumping is one thing on its own, but quite another when three other classes are trying to rocketjump alongside you.

Preventing spawncamping in lieu of knowing how to rocketjump is a good idea though.

That's a good idea , but I haven't seen that type of griefing happen though,but explosions affecting player sometimes is good, because one time I was having trouble with a jump and another demoman helped get up there.but at the same time it's bad, so maybe I could make red stickies affect blu players the same way red stickies affect red players

@Bullets

I'll change that as soon as I am on my computer,

I am typing from my iPad right now :p
« Last Edit: February 18, 2013, 07:08:48 pm by Perfect Cell »
Logged

Anon

  • Guest
Re: Rocket jump grief prevention
« Reply #4 on: February 19, 2013, 12:23:05 am »

Another thing that would help prevent griefing is stopping explosions from affecting other players adversely. Rocketjumping is one thing on its own, but quite another when three other classes are trying to rocketjump alongside you.

Preventing spawncamping in lieu of knowing how to rocketjump is a good idea though.

I am typing from my iPad right now :p
^
Logged

Kalir

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 488
  • no one here
Re: Rocket jump grief prevention
« Reply #5 on: February 19, 2013, 12:42:04 am »

That's a good middle ground, I suppose.
Logged
Praise Cheibriados.

cmb

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 337
  • Mario Bros
Re: Rocket jump grief prevention
« Reply #6 on: March 17, 2013, 11:57:27 am »

I'm going to make an update that only let's your own stickies affect you.
Expect it soon.After I get off my iPad :p
« Last Edit: March 17, 2013, 12:14:37 pm by cmb »
Logged

Nova

  • Seasoned Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1740
  • Personal Text
Re: Rocket jump grief prevention
« Reply #7 on: March 17, 2013, 12:17:20 pm »

Some suggestions:

1. Expand the forbidden classes to anything but Rocketman and Deto
2. Make it so players can't hurt each other
3. Change it so players get gibbed if choosing a forbidden class, with the message "%PLAYERNAME% doesn't understand rocketjump maps"
4. Make it happen with the "dj" prefix, too.
Logged

t~

  • Seasoned Member
  • *****
  • Karma: 11
  • Offline Offline
  • Posts: 1855
  • BOUTTA GET BANNED BY INTEL 5/1/2016
Re: Rocket jump grief prevention
« Reply #8 on: March 17, 2013, 01:18:52 pm »

Some suggestions:

1. Expand the forbidden classes to anything but Rocketman and Deto
2. Make it so players can't hurt each other
3. Change it so players get gibbed if choosing a forbidden class, with the message "%PLAYERNAME% doesn't understand rocketjump maps"
4. Make it happen with the "dj" prefix, too.

But at the beginning, everyone is a runner, so everyone would get gibbed?
Logged
^_^

cmb

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 337
  • Mario Bros
Re: Rocket jump grief prevention
« Reply #9 on: March 17, 2013, 02:18:12 pm »

Some suggestions:

1. Expand the forbidden classes to anything but Rocketman and Deto
2. Make it so players can't hurt each other
3. Change it so players get gibbed if choosing a forbidden class, with the message "%PLAYERNAME% doesn't understand rocketjump maps"
4. Make it happen with the "dj" prefix, too.

But at the beginning, everyone is a runner, so everyone would get gibbed?

I could make everyone start as rocket man you know

Nova

  • Seasoned Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1740
  • Personal Text
Re: Rocket jump grief prevention
« Reply #10 on: March 18, 2013, 12:57:55 pm »

Some suggestions:

1. Expand the forbidden classes to anything but Rocketman and Deto
2. Make it so players can't hurt each other
3. Change it so players get gibbed if choosing a forbidden class, with the message "%PLAYERNAME% doesn't understand rocketjump maps"
4. Make it happen with the "dj" prefix, too.

But at the beginning, everyone is a runner, so everyone would get gibbed?

They could just change classes.
Logged

Silent Boom

  • Lucky Member
  • *******
  • Karma: 17
  • Offline Offline
  • Posts: 1013
Re: Rocket jump grief prevention
« Reply #11 on: March 19, 2013, 05:56:51 pm »

Can you changed the code to make it only allow snipers and heavies on gg2_duckhunt?

It seems pretty easy, but I don't know what the classes are called and what those functions do.
« Last Edit: March 19, 2013, 05:57:34 pm by Silent Boom »
Logged

Lorgan

  • Retired Randomizer Mod Developer
  • Resident Miku
  • *****
  • Karma: 27
  • Offline Offline
  • Posts: 3657
    • My own website
Re: Rocket jump grief prevention
« Reply #12 on: March 20, 2013, 09:29:34 am »

change this

isrj = string_copy(mapstring,1,3);
if isrj = "rj_"

to

isrj = string_copy(mapstring,1,4);
if isrj = "gg2_"


and this
if player.class == CLASS_SPY or player.class == CLASS_HEAVY or player.class == CLASS_PYRO
to
if player.class == CLASS_SNIPER or player.class == CLASS_HEAVY

And it will only allow snipers and heavies on any map with the "gg2_" prefix
Logged
Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking

Kalir

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 488
  • no one here
Re: Rocket jump grief prevention
« Reply #13 on: March 20, 2013, 11:36:06 am »

Playing gg2_duckhunt is bad enough, why would you punish people further?

The only fun I ever had on it was going runner as BLU, and with the recent map change I can't even do that.

More like gg2_funhunt.
Logged
Praise Cheibriados.

cmb

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 337
  • Mario Bros
Re: Rocket jump grief prevention
« Reply #14 on: March 20, 2013, 12:17:32 pm »

Playing gg2_duckhunt is bad enough, why would you punish people further?

The only fun I ever had on it was going runner as BLU, and with the recent map change I can't even do that.

More like gg2_funhunt.

I loved to go scout and demo on blu too, as well as going scout on red,but it had to be done, if hosts wants i can just restrict snipers to blu because it is verry hard for red to win, in most cases
Pages: [1] 2
 

Page created in 0.031 seconds with 50 queries.