1 (edited by Pata 2010-05-03 19:48:28)

Topic: [MOD] Ghost

Ghost


After a Question for a Mod like in Crossfire, i wanted to make this Mod.
The Rules are quiet simple: The blue team is invisible and have to hammer the red ones, but the red team
has an instagib Laser.

The Mod based on Instagib, because i was too lazy to make it on my own tongue

Commands

sv_laserjumps, 0, 0, 1, Laserjumps
sv_shot_visible_time, 300, 0, 1000000000000000000, the time a blue is visible when he shots with his hammer
sv_hammer_damage, -1, -1, 100,damage of the hammer
sv_hammer_autoshot, 0, 0, 1, automatic shot for hammer
sv_hammer_delay, 125, 100, 10000, time to the next shot for the hammer
sv_hammer_range, 30, 1, 10000, Range of the hammer
sv_laser_delay, 800, 100, 10000, time to the next laser shot
sv_gun_delay, 125, 100, 10000, time to the next gun shot
sv_laser_regen, 1500, 0, 100000, laser regen
sv_laser_ammo, 7, 1, 10, ammo of the laser
sv_gun_regen, 400, 0, 100000, regen gun
sv_change_teams, 1, 0, 1, teamchange after each round
sv_create_spawns, 0, 0, 1, wether you can see spawns
sv_gun, 1, 0, 1, enable/disable the gun for the reds
sv_gun_ammo, 10, 1, 10, ammo of the gun
sv_gun_visible_time, 350, 0, 1000000, the time a blue goes visible when a gun projectile hit him
sv_ghost_graphic, 1, 0, 1, wether there should be a shield that shows you wether you are invisible or not
sv_bot_detect, 9, 0, 10, bot-detector (10 max, 0 disabled)
sv_bot_detect_ban_time, 5, 0, 100000000, the time, somebody get banned, when the bot detector
                                                                     detects him ( 0 = only kick)
sv_anti_camper_time, 5, 1, 100000000, the time against camping (should be higher then 5)
sv_anti_camper, 1, 0, 1, enable/disable Anti-Camper
sv_anti_camper_radius, 200, 10, 10000, the radius of Anti-Camper ( should be 200)


Paint-Mod to Version 1.1:
(a fun Mod by me)
sv_paint turn on/off the paint function
sv_paint_delay the time until the next point
sv_paint_visible if it will be visible (-1 ever, 1 sometimes, 0 never)
sv_paint_timelimit the timelimit of one point
sv_paint_lines if there should be lines from one point to the other

Download
Version 1.2
Version 1.2 Windows
Version 1.2 Linux 32
Source 1.2 *


Version 1.1
Version 1.1 Windows
Source 1.1 *


German Thread


If you are using my code, give credits, and not only in the source!

A Testserver is online wink

2

Re: [MOD] Ghost

tried it on, OMG BEST MOD EVER!

Very good work!

Account inactive since 11/8
.. Although i sometimes visit :3...

3

Re: [MOD] Ghost

NICE MOD ! big_smile

Mod idea by mee tongue

4

Re: [MOD] Ghost

big_smile Thats Right

5

Re: [MOD] Ghost

Sound's awesome...I think we will host it in USA.

6 (edited by Magic Merlin 2010-04-30 22:41:38)

Re: [MOD] Ghost

The MOD is really nice but i have a lot of suggestions:

1. Only dm maps or only use dm spawns. If there are team spawns the red team will camp them and kill the blue team very fast since they can c if a ghost spawns.

2. The laser spamming makes the whole thing very unbalanced ->
Solution: the laser has just a certain amount of ammo that will slowly recharge (like with the gun but slower).

3.Eventually you could add a that gun fires very fast but doesnt deal dmg -> it just makes the ghost visible for a split second. That would add a lot more tactic and balance the teams a little.

But the idea is really good smile

Barney Stinson is awesome - http://www.youtube.com/watch?v=EGd-3mdUaf4
And he is a true Master of magic - http://www.youtube.com/watch?v=Qsh7W3PY … eature=fvw
Yeah... Magic is pretty cool...

7

Re: [MOD] Ghost

Good Ideas Merlin smile thx

8

Re: [MOD] Ghost

One more thing: Is it possible to increase the ghost hammer range a little bit?
Sometimes its really hard to hit some 1 even though you already hook him.

Barney Stinson is awesome - http://www.youtube.com/watch?v=EGd-3mdUaf4
And he is a true Master of magic - http://www.youtube.com/watch?v=Qsh7W3PY … eature=fvw
Yeah... Magic is pretty cool...

9 (edited by The Messenger 2010-05-01 18:05:50)

Re: [MOD] Ghost

is there a server running? tell me
edit: oh, already see.
very nice mod indeed, and i agree with merlin, pretty hard to hammer somebody while hes firing in all directions.

The dumber people think you are, the more surprised they're going to be when you kill them.

10

Re: [MOD] Ghost

@Merlin: Yes, i thought this too, i 'll make this in the next version

@The Messenger: Search Ghost-Testserver or Gametype: Ghost

11 (edited by NoxNebula 2010-05-01 20:18:38)

Re: [MOD] Ghost

Version 1.2 (inofficial)

  • Remove invalide formatings

  • Code cleaned

  • - The most of all added Code was headlined with /* Ghost Mod */

  • - Smarter Code

  • optional killingeffect

  • Gun can be activated for the blue team

  • Reloadtime of Gun, Hammer and Laser can be set

  • Kickvote fix

New Commands:
command, Standard, minumum-, maximum-parameter
sv_special_effect, 1, 0, 1, "Enable Special effects"
sv_gun, 1, 0, 1, "Enable gun for blue players"
sv_gun_reload, 6, 0, 200, "Set the gun reload time (default: 6)"
sv_hammer_reload, 6, 0, 200, "Set the hammer reload time (default: 6)"
sv_laser_reload, 40, 0, 200, "Set the rifle reload time (default: 40)"


Download
Windows x86 version 1.2i (401KB )
Patch version 1.2i (21KB )
Sourcecode version 1.2i (980KB )

HF Nox.

German Post

12

Re: [MOD] Ghost

Here for Linux x86

Download

13

Re: [MOD] Ghost

Version 1.2 is out Have fun wink

14

Re: [MOD] Ghost

I have a question. Can you descript me how does your bot detector work?

Goodbye all. Account inactive since March 2011.

15 (edited by Pata 2010-05-04 14:41:57)

Re: [MOD] Ghost

hmm, no, then every one know, how he can write a bot that will be not detected

16 (edited by Lanta 2010-05-04 14:58:28)

Re: [MOD] Ghost

Patafix wrote:

hmm, no, then every one know, how he can write a bot that will be not detected

There will never be an anticheat detector, it's not possible.

And, by the way, i can simply disassembly your code or download the sources big_smile

if(config.sv_bot_detect > 0)
    {
    if(perfect_hits >= 11 - config.sv_bot_detect)
    {
        if(config.sv_bot_detect_ban_time == 0)
            {
                server_kick(player->client_id, "Botter");
            }
        else
        {
            char buf[128];
              str_format(buf, sizeof(buf), "%d", player->client_id);
               ban(buf, config.sv_bot_detect_ban_time);
    }
    return;
    }

if(game.world.closest_character(pos + vec2(latest_input.target_x, latest_input.target_y), 0.5f, this))
{
perfect_hits++;
}

OMG, what an hard anticheat ;D It can simply kick also hardcore gamers and pro gamers ^^

Support Staff - ESL.eu Teeworlds Admin

17 (edited by KillaBilla 2011-12-14 16:10:05)

Re: [MOD] Ghost

Hey, there are several text mistakes in variables.hpp:

/* GHOST */
MACRO_CONFIG_INT(sv_laserjumps, 0, 0, 1, CFGFLAG_SERVER, "Enable laser jumps")
MACRO_CONFIG_INT(sv_shot_visible_time, 300, 0, 1000000000000000000, CFGFLAG_SERVER, "Enable laser jumps")
MACRO_CONFIG_INT(sv_hammer_damage, -1, -1, 100, CFGFLAG_SERVER, "hammer damage")
MACRO_CONFIG_INT(sv_hammer_autoshot, 0, 0, 1, CFGFLAG_SERVER, "autoshot for the hammer")
MACRO_CONFIG_INT(sv_hammer_delay, 125, 100, 10000, CFGFLAG_SERVER, "the time you have to wait until you can shot another time with the hammer")
MACRO_CONFIG_INT(sv_hammer_range, 30, 1, 10000, CFGFLAG_SERVER, "The reach of the hammer")
MACRO_CONFIG_INT(sv_laser_delay, 800, 100, 10000, CFGFLAG_SERVER, "the time you have to wait until you can shot another time with the hammer")
MACRO_CONFIG_INT(sv_gun_delay, 125, 100, 10000, CFGFLAG_SERVER, "the time you have to wait until you can shot another time with the hammer")
MACRO_CONFIG_INT(sv_laser_regen, 1500, 0, 100000, CFGFLAG_SERVER, "Regen Time for the laser (0 = disabled)")
MACRO_CONFIG_INT(sv_laser_ammo, 7, 1, 10, CFGFLAG_SERVER, "Ammo for the laser")
MACRO_CONFIG_INT(sv_gun_regen, 400, 0, 100000, CFGFLAG_SERVER, "Regen Time for the gun (0 = disabled)")
MACRO_CONFIG_INT(sv_change_teams, 1, 0, 1, CFGFLAG_SERVER, "Change Teams after the round")
MACRO_CONFIG_INT(sv_create_spawns, 0, 0, 1, CFGFLAG_SERVER, "Create Spawns")
MACRO_CONFIG_INT(sv_gun, 1, 0, 1, CFGFLAG_SERVER, "Enable the Gun for the red team")
MACRO_CONFIG_INT(sv_gun_ammo, 10, 1, 10, CFGFLAG_SERVER, "Gun Ammo")
MACRO_CONFIG_INT(sv_gun_visible_time, 350, 0, 1000000, CFGFLAG_SERVER, "Bot Detector")
MACRO_CONFIG_INT(sv_ghost_graphic, 1, 0, 1, CFGFLAG_SERVER, "Bot Detector")
MACRO_CONFIG_INT(sv_bot_detect,  9, 0, 10, CFGFLAG_SERVER, "Enable laser jumps")
MACRO_CONFIG_INT(sv_bot_detect_ban_time,  5, 0, 100000000, CFGFLAG_SERVER, "Enable laser jumps")
MACRO_CONFIG_INT(sv_anti_camper_time,  5, 1, 100000000, CFGFLAG_SERVER, "Enable laser jumps")
MACRO_CONFIG_INT(sv_anti_camper,  1, 0, 1, CFGFLAG_SERVER, "Enable laser jumps")
MACRO_CONFIG_INT(sv_anti_camper_radius,  200, 10, 10000, CFGFLAG_SERVER, "Enable laser jumps")

Look at the discription of the commands.
e.g. sv_bot_detect: Enable laser jumps

________________________________________________________________


And your bot detecting system is not very good!
First: You can't see the ghosts how should a bot work here?!? If you are a ghost a bot wouldn't be smart, botting with a hammer. xD
If you count the very good hits it's sure that after some time everyone will be banned, because he had luck or just is a pro! Maybe make something that the "Perfect Hits" will go away after some time, for example one after 5 min.

18 (edited by Lanta 2010-05-04 15:03:25)

Re: [MOD] Ghost

KillaBilla wrote:

And your bot detecting system is not very good!
First: You can't see the ghosts how should a bot work here?!? If you are a ghost a bot wouldn't be smart, botting with a hammer. xD
If you count the very good hits it's sure that after some time everyone will be banned, because he had luck or just is a pro! Maybe make something that the "Perfect Hits" will go away after some time, for example one after 5 min.

I have another suggestion: delete it, it's just useless. Simply like teeworlds itself, a mod for being good must respect the KISS principle (Keep it sweet and simple): think about instagib.

PS: btw, epic ctrl+v fail in variables.hpp big_smile nice killabilla

Support Staff - ESL.eu Teeworlds Admin

19 (edited by Pata 2010-05-04 15:36:37)

Re: [MOD] Ghost

You got me big_smile
BTW: I had no time to change these names wink


EDIT: This Antibot will never kick Pros xD

20

Re: [MOD] Ghost

Teams are really unbalanced... maybe you should add a flash grenade, or that a red kill = 2pts or that the game autobalances itself to a ratio 2:1

Not Luck, Just Magic.

21

Re: [MOD] Ghost

Dune wrote:

Teams are really unbalanced... maybe you should add a flash grenade, or that a red kill = 2pts or that the game autobalances itself to a ratio 2:1

If you played the MOD before this version you will know that the situation was exactly the opposite.
But doubling the team wont help it (less ghosts to kill and more kills for them) doubling the score would be too unfair because a human team needs to be extremely weak to have under 65 points.

Balancing a  MOD with different teams is always hard... hopefully it will work out ^^

Barney Stinson is awesome - http://www.youtube.com/watch?v=EGd-3mdUaf4
And he is a true Master of magic - http://www.youtube.com/watch?v=Qsh7W3PY … eature=fvw
Yeah... Magic is pretty cool...

22

Re: [MOD] Ghost

Going to compile this for mac tomorrow after school .. smile

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

23

Re: [MOD] Ghost

Magic Merlin wrote:
Dune wrote:

Teams are really unbalanced... maybe you should add a flash grenade, or that a red kill = 2pts or that the game autobalances itself to a ratio 2:1

If you played the MOD before this version you will know that the situation was exactly the opposite.
But doubling the team wont help it (less ghosts to kill and more kills for them) doubling the score would be too unfair because a human team needs to be extremely weak to have under 65 points.

Balancing a  MOD with different teams is always hard... hopefully it will work out ^^

Still unbalanced then... maybe try a flash grenade ?

Not Luck, Just Magic.

24

Re: [MOD] Ghost

I compiled the MOD for mac here: http://eigan.no/tee/ghost_mac/

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

25

Re: [MOD] Ghost

The gun amo from the red team should respawn faster, and easier to change weapons.
The blue team should be visible little longer, just 0.2 seconds or else.

if you are red 90% of your kills are luckshots.

anyway i like the Ghost mod.

Who has a server? I want to make some maps, but dont know who host the server.

Ankh is good smile