--- /dev/null
+ring,models/relics/relic_ring
+mesh,models/relics/relic
+sign,models/relics/sign_inferno
\ No newline at end of file
set g_buffs_flight_gravity 0.3 "player gravity multiplier while holding flight buff"
set g_buffs_invisible 1 "invisible buff: carrier becomes invisible"
set g_buffs_invisible_alpha 0.4 "player invisibility multiplier while holding invisible buff"
-
+set g_buffs_inferno 1 "inferno buff: targets damaged by player carrying inferno buff will also receive burning damage"
+set g_buffs_inferno_burntime 1.5 "burning time of damaged target"
+set g_buffs_inferno_damagemultiplier 0.25 "multiplier of damage dealt during burn"
REGISTER_BUFF(_("Jump"),jump,JUMP,10,'0.7 0.2 1');
REGISTER_BUFF(_("Flight"),flight,FLIGHT,11,'1 0.2 0.5');
REGISTER_BUFF(_("Invisible"),invisible,INVISIBLE,12,'0.9 0.9 0.9');
+REGISTER_BUFF(_("Inferno"),inferno,INFERNO,16,'2 0 0');
#undef REGISTER_BUFF
#ifdef SVQC
BUFF_SPAWNFUNCS(jump, BUFF_JUMP)
BUFF_SPAWNFUNCS(flight, BUFF_FLIGHT)
BUFF_SPAWNFUNCS(invisible, BUFF_INVISIBLE)
+BUFF_SPAWNFUNCS(inferno, BUFF_INFERNO)
BUFF_SPAWNFUNCS(random, 0)
BUFF_SPAWNFUNC_Q3TA_COMPAT(doubler, BUFF_MEDIC)
ARG_CASE(ARG_CS_SV, "spree_lost", (autocvar_notification_show_sprees ? notif_arg_spree_inf(-2, "", "", f1) : "")) \
ARG_CASE(ARG_CS_SV, "item_wepname", WEP_NAME(f1)) \
ARG_CASE(ARG_CS_SV, "item_buffname", sprintf("%s%s", rgb_to_hexcolor(Buff_Color(f1)), Buff_PrettyName(f1))) \
+ ARG_CASE(ARG_CS_SV, "f3buffname", sprintf("%s%s", rgb_to_hexcolor(Buff_Color(f3)), Buff_PrettyName(f3))) \
ARG_CASE(ARG_CS_SV, "item_wepammo", (s1 != "" ? sprintf(_(" with %s"), s1) : "")) \
ARG_CASE(ARG_DC, "item_centime", ftos(autocvar_notification_item_centerprinttime)) \
ARG_CASE(ARG_SV, "death_team", Team_ColoredFullName(f1)) \
float autocvar_g_buffs_invisible_alpha;
float autocvar_g_buffs_flight_gravity;
float autocvar_g_buffs_jump_height;
+float autocvar_g_buffs_inferno_burntime;
+float autocvar_g_buffs_inferno_damagemultiplier;
#endif
frag_damage = 0;
}
+ if(frag_attacker.buffs & BUFF_INFERNO)
+ if(frag_target != frag_attacker)
+ Fire_AddDamage(frag_target, frag_attacker, (frag_damage * autocvar_g_buffs_inferno_damagemultiplier) * autocvar_g_buffs_inferno_burntime, autocvar_g_buffs_inferno_burntime, DEATH_BUFF);
+
// this... is ridiculous (TODO: fix!)
if(frag_attacker.buffs & BUFF_VAMPIRE)
if(!frag_target.vehicle)
{
dpreflectcube cubemaps/default/sky
{
- map models/relics/relic.tga
+ map models/relics/relic
rgbgen lightingDiffuse
}
}
models/relics/relic_ring
{
{
- map models/relics/relic_ring.tga
+ map models/relics/relic_ring
blendfunc GL_SRC_ALPHA GL_ONE
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_resistance.tga
+ map models/relics/sign_resistance
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_regeneration.tga
+ map models/relics/sign_regeneration
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_vampire.tga
+ map models/relics/sign_vampire
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_ammo.tga
+ map models/relics/sign_ammo
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_damage.tga
+ map models/relics/sign_damage
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_splashdamage.tga
+ map models/relics/sign_splashdamage
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_firingspeed.tga
+ map models/relics/sign_firingspeed
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_disability.tga
+ map models/relics/sign_disability
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_teamboost.tga
+ map models/relics/sign_teamboost
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_speed.tga
+ map models/relics/sign_speed
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_jump.tga
+ map models/relics/sign_jump
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_flight.tga
+ map models/relics/sign_flight
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_invisible.tga
+ map models/relics/sign_invisible
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_radioactive.tga
+ map models/relics/sign_radioactive
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_resurrection.tga
+ map models/relics/sign_resurrection
blendfunc add
rgbgen lightingDiffuse
}
{
cull none
{
- map models/relics/sign_vengeance.tga
+ map models/relics/sign_vengeance
+ blendfunc add
+ rgbgen lightingDiffuse
+ }
+}
+models/relics/sign_inferno
+{
+ cull none
+ {
+ map models/relics/sign_inferno
blendfunc add
rgbgen lightingDiffuse
}