Posts: 1,177
Threads: 239
Joined: Oct 2014
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.
Posts: 1,379
Threads: 166
Joined: Oct 2014
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"
Posts: 476
Threads: 121
Joined: Nov 2014
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.
Looted A Frying Pan 11/25/14
Posts: 72
Threads: 10
Joined: May 2014
agree should be a healing thing maybe a throwing weapon that heals you and allies when you hit the enemy
Posts: 1,177
Threads: 239
Joined: Oct 2014
(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"
Yeah exactly, also opens up the possibility to cade on spots with out ammo boxes
Posts: 1,177
Threads: 239
Joined: Oct 2014
29-11-2016, 09:21 PM
(This post was last modified: 01-12-2016, 05:16 PM by Kaasovic.)
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
|