NordInvasion Forum
Beer - Printable Version

+- NordInvasion Forum (https://forum.nordinvasion.com)
+-- Forum: Discussions (https://forum.nordinvasion.com/forumdisplay.php?fid=7)
+--- Forum: Community Projects (https://forum.nordinvasion.com/forumdisplay.php?fid=19)
+---- Forum: Feature Requests (https://forum.nordinvasion.com/forumdisplay.php?fid=77)
+---- Thread: Beer (/showthread.php?tid=57485)



Beer - Kaasovic - 13-11-2016

To make Beer a more cool item, why not give it a healing effect when you hit an ally (Like the sugeons scalpel in Persistend World)
Winter said it was not a bad idea.


RE: Beer - Bobo - 13-11-2016

Certainly, that is a funny idea. Ofc using med boxes is much easier, however hitting someone with the beer seems to have a tone of fun. I can imagine thing like: "stop, stnad still so I will heal you" Smile


RE: Beer - Looter - 13-11-2016

Make it heal only 2 hit point at a time so it takes forever and is more likely to get you drunk before finishing healing you.


RE: Beer - Consweber - 13-11-2016

agree should be a healing thing maybe a throwing weapon that heals you and allies when you hit the enemy


RE: Beer - Kaasovic - 13-11-2016

(13-11-2016, 08:12 PM)Bobo Wrote: Certainly, that is a funny idea. Ofc using med boxes is much easier, however hitting someone with the beer seems to have a tone of fun. I can imagine thing like: "stop, stnad still so I will heal you" Smile

Yeah exactly, also opens up the possibility to cade on spots with out ammo boxes


RE: Beer - Kaasovic - 29-11-2016

Fiddled around in the scripts and if I'm correct, this should do the trick I suggested. Pls add

[spoiler=module_mission_templates.py]


Code:
beer_heal = (ti_on_agent_hit, 0, 0, [],
   [(store_trigger_param_1, ":attacked_agent_id"),
    (store_trigger_param_2, ":attacker_agent_id"),
    (store_trigger_param_3, ":damage_dealt"),
    (try_begin),
        (agent_get_player_id,":attacked_player_id",":attacked_agent_id"),
        (agent_get_player_id,":attacker_player_id",":attacker_agent_id"),
        (player_get_team_no, ":attacked_agent_team",":attacked_player_id"),
        (player_get_team_no, ":attacker_agent_team",":attacker_player_id"),
        (agent_get_wielded_item, ":wielded_item", ":attacker_agent_id", 0),
        (try_begin),
            (eq, ":attacked_agent_team",":attacker_agent_team"),
            (eq, ":wielded_item", itm_beer),
            (agent_is_human, ":attacked_agent_id"),
            (try_begin),
                (store_agent_hit_points, ":attacked_agent_id", ":ally_health"),
                (agent_get_position, pos2, ":attacked_agent_id"),
                (lt, ":ally_health", 100),
                (val_add, ":ally_health", 5),
                (agent_set_hit_points, ":attacked_agent_id", ":ally_health", 0),
                (position_move_z, pos2, 50),
                (particle_system_burst, "psys_heal_effect", pos2, 200),
            (try_end),
        (try_end),
    (try_end),
    ])

[/spoiler]

pls no hate if things are off