Raised This Month: $ Target: $400
 0% 

L4D2 - how to add a message to


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AsphyxiaJLSA
Member
Join Date: Oct 2021
Location: Lima,Perú
Old 10-08-2021 , 15:46   L4D2 - how to add a message to
Reply With Quote #1

Hello, I would like to know how I can add those messages as they are in the other image. , I understand that it is "hint_caption" but I don't know where to put, the ones that appear with the yellow triangle please help
and sorry for the bad english.



PHP Code:
;----------FILE MODIFICATION (YY/MM/DD): [2021/10/07] ---------------||
;----------
BYAsphyxia----------------------||

gas event
; ===================== Proceso para Quemar la Barricada. (NO MODIFICAR)
add:
{
    
"classname" "logic_auto"
    "OnMultiNewRound" "@directorBeginScriptsky_scavenge_cans_cvars.nut0-1"
    "OnMapSpawn" "@directorBeginScriptsky_scavenge_cans_cvars.nut0-1"
    "OnMapSpawn" "sky_gascansTurnGlowsOff0-1"
    "OnMapSpawn" "sky_scavenge_carnivaladdoutputmins -25 -25 00-1"
    "OnMapSpawn" "sky_scavenge_carnivaladdoutputmaxs 300 300 1000-1"
    "OnMapSpawn" "sky_scavenge_carnivaladdoutputsolid 20-1"
    "OnMapSpawn" "sky_objects_glowingaddoutputmins -25 -25 00-1"
    "OnMapSpawn" "sky_objects_glowingaddoutputmaxs 300 300 1000-1"
    "OnMapSpawn" "sky_objects_glowingaddoutputsolid 20-1"
    "OnMapSpawn" "sky_ragdoll_stress_serveraddoutputmins -200 -200 00-1"
    "OnMapSpawn" "sky_ragdoll_stress_serveraddoutputmaxs 10 10 1000-1"
    "OnMapSpawn" "sky_ragdoll_stress_serveraddoutputsolid 20-1"
}
{
    
"classname" "point_servercommand"
    "targetname" "sky_servercommander"
}
{
    
"classname" "func_timescale"
    "minBlendRate" "2"
    "desiredTimescale" "0.2"
    "blendDeltaMultiplier" "3.0"
    "acceleration" "0.05"
    "targetname" "sky_timescale"
}
; ===================== 
Bloque Invisible en la Barricada para que no pasen los supervivientes.
{
    
"origin" "14516 11730 -384"
    "angles" "0 -92 0"
    "maxs" "0 132.618164 170"
    "mins" "-20 -0 -0"
    "boxmaxs" "0 132.618164 170"
    "boxmins" "-20 0 0"
    "initialstate" "1"
    "BlockType" "1"
    "classname" "env_physics_blocker"
    "targetname" "sky_invisible_block_surv"
}
{
    
"origin" "14516 11730 -384"
    "angles" "0 -92 0"
    "maxs" "0 132.618164 170"
    "mins" "0 0 0"
    "boxmaxs" "0 132.618164 170"
    "boxmins" "-20 -0 -0"
    "initialstate" "1"
    "BlockType" "1"
    "classname" "env_physics_blocker"
    "targetname" "sky_invisible_block_surv"
}
; ===================== 
Bloque Invisible cerca a la Barricada para que no tiren las latas en sitios inalcanzables.

; ===================== 
Correcion de Colores
{
    
"classname" "color_correction"
    "fadeInDuration" "1.0"
    "fadeOutDuration" "2.0"
    "filename" "materials/correction/el_timescale.raw"
    "maxfalloff" "-1"
    "maxweight" "0.9"
    "minfalloff" "-1"
    "spawnflags" "0"
    "StartDisabled" "1"
    "targetname" "sky_bt_colorcorrect"
}
; ===================== 
Evento ActivadorAparece Brillo de las Latas y Contador de Latas
{
    
"classname" "trigger_multiple"
    "targetname" "sky_objects_glowing"
    "filtername" "sky_filter_survs"
    "spawnflags" "1"
    "startdisabled" "0"
    "origin" "13881 11929 -375"
    "OnTrigger" "sky_cotton_candy_spawn,ForceSpawn,,0,1"
    "OnTrigger" "sky_cotton_candy_gate,startglowing,,0,1"
    "OnTrigger" "sky_cotton_candy_gate,stopglowing,,10,1"
    "OnTrigger" "!self,Kill,,20,1"
}
{
    
"classname" "trigger_multiple"
    "targetname" "sky_scavenge_carnival"
    "filtername" "sky_filter_survs"
    "spawnflags" "1"
    "startdisabled" "0"
    "origin" "13881 11929 -375"
    "OnTrigger" "!Rochelle,speakresponseconcept,_c4m1Intro10,0,1"
    "OnTrigger" "sky_scavenge_display,TurnOn,,0,1"
    "OnTrigger" "sky_gascans,TurnGlowsOn,,0,1"
    "OnTrigger" "sky_burn_barricade,startglowing,,0,1"
    "OnTrigger" "!self,Kill,,20,1"
}
; ===================== 
Evento Latas de GasolinaSitio donde podran ser llenadaspara colocarlo debes pegarte adelante de la barricada y colocar el origen ensima de la barricada y mirando afuera ahi.
{
    
"classname" "point_prop_use_target"
    "nozzle" "sky_burn_barricade"
    "origin" "14573 11740 -309"
    "angles" "1350 -86 0"
    "spawnflags" "1"
    "targetname" "sky_gas_target"
    "OnUseFinished" "sky_gas_counter,Add,1,0,-1"
    "OnUseFinished" "sky_servercommander,command,sm_add_canister_points 12,0,6"
}
; ===================== 
Cantidad Maxima de Gasolinas en el Contador
{
    
"classname" "game_scavenge_progress_display"
    "targetname" "sky_scavenge_display"
    "max" "16"
}
{
    
"classname" "math_counter"
    "max" "16"
    "targetname" "sky_gas_counter"
    "OnHitMax" "sky_relay_barricade,Trigger,,0,-1"
}
{
    
"classname" "logic_relay"
    "targetname" "sky_relay_barricade"
    "OnTrigger" "!Rochelle,speakresponseconcept,PlayerMoveOn,70,-1"
    "OnTrigger" "director,PanicEvent,,2.5,-1"
    "OnTrigger" "director,PanicEvent,,2.5,-1"
        "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
        "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
        "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
        "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
        "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "sky_scavenge_display,TurnOff,,0,-1"
    "OnTrigger" "sky_burn_barricade,stopglowing,,0,-1"
    "OnTrigger" "sky_burn_barricade,DisableCollision,,0,-1"
    "OnTrigger" "sky_fire_barricade_1,Start,,0,-1"
    "OnTrigger" "sky_fire_barricade_2,Start,,38,-1"
    "OnTrigger" "sky_fire_barricade_1,Stop,,70,-1"
    "OnTrigger" "sky_fire_barricade_2,Stop,,70,-1"
    "OnTrigger" "sky_barricade_sound,PlaySound,,0,-1"
    "OnTrigger" "sky_barricade_sound,FadeOut,1,66,-1"
    "OnTrigger" "sky_phy_clip,kill,,0,-1"
    "OnTrigger" "sky_gas_target,Kill,,0,-1"
    "OnTrigger" "sky_invisible_block,kill,,0,-1"
    "OnTrigger" "sky_burn_barricade,kill,,25,-1"
    "OnTrigger" "sky_burn_barricade1,kill,,50,-1"
    "OnTrigger" "sky_burn_barricade2,kill,,70,-1"
    "OnTrigger" "sky_charger_block,Kill,,70,-1"
    "OnTrigger" "sky_invisible_block_surv,kill,,70,-1"
}


;
respawn tank

{
    
"origin" "13956 11527 -390"
"targetname" "tankspawn1"
"population" "Tank"
"offer_tank" "1"
    "angles" "0 -7 0"
"classname" "info_zombie_spawn"
"hammerid" "4744574"
}


; =====================
Posicion de la Barricada (Todo lo demas debe tener la misma posicion)
{
    
"classname" "info_particle_system"
    "effect_name" "barricade_fire"
    "targetname" "sky_fire_barricade_1"
    "angles" "0 -173 0"
    "origin" "14577 11723 -380"
}
{
    
"classname" "info_particle_system"
    "effect_name" "fire_medium_03"
    "targetname" "sky_fire_barricade_1"
    "origin" "14577 11723 -380"
}
{
    
"classname" "info_particle_system"
    "effect_name" "barricade_fire"
    "targetname" "sky_fire_barricade_2"
    "origin" "14577 11723 -380"
    "angles" "0 -173 0"
}
{
    
"classname" "ambient_generic"
    "health" "9"
    "message" "ambient/fire/fire_med_loop1.wav"
    "pitch" "100"
    "pitchstart" "100"
    "radius" "4000"
    "spawnflags" "48"
    "targetname" "sky_barricade_sound"
    "origin" "14577 11723 -380"
}
{
    
"classname" "prop_dynamic"
    "targetname" "sky_burn_barricade"
    "glowcolor" "255 0 0"
    "glowstate" "0"
    "glowrange" "1500"
    "solid" "0"
    "model"  "models/props_unique/wooden_barricade.mdl"
    "origin" "14577 11723 -380"
    "angles" "0 -173 0"
    "disableshadows" "1"
}
{
    
"classname" "prop_dynamic"
    "targetname" "sky_burn_barricade1"
    "solid" "0"
    "model"  "models/props_unique/wooden_barricade_break1.mdl"
    "origin" "14577 11723 -380"
    "angles" "0 -173 0"
    "disableshadows" "1"
}
{
    
"classname" "prop_dynamic"
    "targetname" "sky_burn_barricade2"
    "solid" "0"
    "model"  "models/props_unique/wooden_barricade_break2.mdl"
    "origin" "14577 11723 -380"
    "angles" "0 -173 0"
    "disableshadows" "1"
}
{
    
"classname" "prop_dynamic"
    "targetname" "sky_burn_barricade3"
    "solid" "0"
    "model"  "models/props_unique/wooden_barricade_break3.mdl"
    "origin" "14577 11723 -380"
    "angles" "0 -173 0"
    "disableshadows" "1"
}
; ===================== 
No Modificar
{
    
"targetname" "sky_filter_survs"
    "classname" "filter_activator_team"
    "filterteam" "2"
    "Negated" "0"
}
modify:
{
    
match:
    {
        
"hammerid" "86322"
    
}
    
replace:
    {
        
"spawnflags" "526336"
        "spawnpos" "0"
    
}
    
insert:
    {
        
"targetname" "sky_door"
    
}

Attached Thumbnails
Click image for larger version

Name:	123.png
Views:	75
Size:	96.1 KB
ID:	191773  

Last edited by AsphyxiaJLSA; 10-08-2021 at 20:36.
AsphyxiaJLSA is offline
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 10-08-2021 , 23:46   Re: L4D2 - how to add a message to
Reply With Quote #2

add this:
PHP Code:
;========== Instructor del eventoambos con el mismo origin.
{
    
"classname" "env_instructor_hint"
    "targetname" "sky_instructor_hint"
    "hint_target" "sky_instructor_target"
    "hint_caption" "ˇVierte la barricada con gasolina y prepárate para la horda!"
    "hint_timeout" "0"
    "hint_range" "5000"
    "hint_auto_start" "0"
    "hint_icon_onscreen" "icon_alert_red"
    "hint_icon_offscreen" "icon_alert"
    "hint_allow_nodraw_target" "1"
    "hint_color" "255 255 255"
    "hint_static" "0"
    "hint_shakeoption" "0"
    "hint_pulseoption" "0"
    "hint_nooffscreen" "0"
    "hint_icon_offset" "0"
    "hint_forcecaption" "0"
    "hint_alphaoption" "0"
    "origin" "14573 11740 -309"
}
{
    
"classname" "info_target"
    "targetname" "sky_instructor_target"
    "spawnflags" "1"
    "origin" "14573 11740 -309"

then add this line:
PHP Code:
    "OnTrigger" "sky_instructor_hint,ShowHint,,0,-1" 
Here:
PHP Code:
{
    
"classname" "trigger_multiple"
    "targetname" "sky_scavenge_carnival"
    "filtername" "sky_filter_survs"
    "spawnflags" "1"
    "startdisabled" "0"
    "origin" "13881 11929 -375"
    "OnTrigger" "!Rochelle,speakresponseconcept,_c4m1Intro10,0,1"
    "OnTrigger" "sky_instructor_hint,ShowHint,,0,-1"
    "OnTrigger" "sky_scavenge_display,TurnOn,,0,1"
    "OnTrigger" "sky_gascans,TurnGlowsOn,,0,1"
    "OnTrigger" "sky_burn_barricade,startglowing,,0,1"
    "OnTrigger" "!self,Kill,,20,1"

Finally, add these two lines:
PHP Code:
    "OnTrigger" "sky_instructor_hint,EndHint,,0,-1"
    "OnTrigger" "sky_instructor_hint,Kill,,0.1,-1" 
Here:
PHP Code:
{
    
"classname" "logic_relay"
    "targetname" "sky_relay_barricade"
    "OnTrigger" "!Rochelle,speakresponseconcept,PlayerMoveOn,70,-1"
    "OnTrigger" "director,PanicEvent,,2.5,-1"
    "OnTrigger" "director,PanicEvent,,2.5,-1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "sky_scavenge_display,TurnOff,,0,-1"
    "OnTrigger" "sky_burn_barricade,stopglowing,,0,-1"
    "OnTrigger" "sky_burn_barricade,DisableCollision,,0,-1"
    "OnTrigger" "sky_fire_barricade_1,Start,,0,-1"
    "OnTrigger" "sky_fire_barricade_2,Start,,38,-1"
    "OnTrigger" "sky_fire_barricade_1,Stop,,70,-1"
    "OnTrigger" "sky_fire_barricade_2,Stop,,70,-1"
    "OnTrigger" "sky_barricade_sound,PlaySound,,0,-1"
    "OnTrigger" "sky_barricade_sound,FadeOut,1,66,-1"
    "OnTrigger" "sky_instructor_hint,EndHint,,0,-1"
    "OnTrigger" "sky_instructor_hint,Kill,,0.1,-1"
    "OnTrigger" "sky_phy_clip,kill,,0,-1"
    "OnTrigger" "sky_gas_target,Kill,,0,-1"
    "OnTrigger" "sky_invisible_block,kill,,0,-1"
    "OnTrigger" "sky_burn_barricade,kill,,25,-1"
    "OnTrigger" "sky_burn_barricade1,kill,,50,-1"
    "OnTrigger" "sky_burn_barricade2,kill,,70,-1"
    "OnTrigger" "sky_charger_block,Kill,,70,-1"
    "OnTrigger" "sky_invisible_block_surv,kill,,70,-1"

__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382
Tank Rush is offline
AsphyxiaJLSA
Member
Join Date: Oct 2021
Location: Lima,Perú
Old 10-09-2021 , 11:52   Re: L4D2 - how to add a message to
Reply With Quote #3

Quote:
Originally Posted by Tank Rush View Post
add this:
PHP Code:
;========== Instructor del eventoambos con el mismo origin.
{
    
"classname" "env_instructor_hint"
    "targetname" "sky_instructor_hint"
    "hint_target" "sky_instructor_target"
    "hint_caption" "ˇVierte la barricada con gasolina y prepárate para la horda!"
    "hint_timeout" "0"
    "hint_range" "5000"
    "hint_auto_start" "0"
    "hint_icon_onscreen" "icon_alert_red"
    "hint_icon_offscreen" "icon_alert"
    "hint_allow_nodraw_target" "1"
    "hint_color" "255 255 255"
    "hint_static" "0"
    "hint_shakeoption" "0"
    "hint_pulseoption" "0"
    "hint_nooffscreen" "0"
    "hint_icon_offset" "0"
    "hint_forcecaption" "0"
    "hint_alphaoption" "0"
    "origin" "14573 11740 -309"
}
{
    
"classname" "info_target"
    "targetname" "sky_instructor_target"
    "spawnflags" "1"
    "origin" "14573 11740 -309"

then add this line:
PHP Code:
    "OnTrigger" "sky_instructor_hint,ShowHint,,0,-1" 
Here:
PHP Code:
{
    
"classname" "trigger_multiple"
    "targetname" "sky_scavenge_carnival"
    "filtername" "sky_filter_survs"
    "spawnflags" "1"
    "startdisabled" "0"
    "origin" "13881 11929 -375"
    "OnTrigger" "!Rochelle,speakresponseconcept,_c4m1Intro10,0,1"
    "OnTrigger" "sky_instructor_hint,ShowHint,,0,-1"
    "OnTrigger" "sky_scavenge_display,TurnOn,,0,1"
    "OnTrigger" "sky_gascans,TurnGlowsOn,,0,1"
    "OnTrigger" "sky_burn_barricade,startglowing,,0,1"
    "OnTrigger" "!self,Kill,,20,1"

Finally, add these two lines:
PHP Code:
    "OnTrigger" "sky_instructor_hint,EndHint,,0,-1"
    "OnTrigger" "sky_instructor_hint,Kill,,0.1,-1" 
Here:
PHP Code:
{
    
"classname" "logic_relay"
    "targetname" "sky_relay_barricade"
    "OnTrigger" "!Rochelle,speakresponseconcept,PlayerMoveOn,70,-1"
    "OnTrigger" "director,PanicEvent,,2.5,-1"
    "OnTrigger" "director,PanicEvent,,2.5,-1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "tankspawn1,SpawnZombie,,0,1"
    "OnTrigger" "sky_scavenge_display,TurnOff,,0,-1"
    "OnTrigger" "sky_burn_barricade,stopglowing,,0,-1"
    "OnTrigger" "sky_burn_barricade,DisableCollision,,0,-1"
    "OnTrigger" "sky_fire_barricade_1,Start,,0,-1"
    "OnTrigger" "sky_fire_barricade_2,Start,,38,-1"
    "OnTrigger" "sky_fire_barricade_1,Stop,,70,-1"
    "OnTrigger" "sky_fire_barricade_2,Stop,,70,-1"
    "OnTrigger" "sky_barricade_sound,PlaySound,,0,-1"
    "OnTrigger" "sky_barricade_sound,FadeOut,1,66,-1"
    "OnTrigger" "sky_instructor_hint,EndHint,,0,-1"
    "OnTrigger" "sky_instructor_hint,Kill,,0.1,-1"
    "OnTrigger" "sky_phy_clip,kill,,0,-1"
    "OnTrigger" "sky_gas_target,Kill,,0,-1"
    "OnTrigger" "sky_invisible_block,kill,,0,-1"
    "OnTrigger" "sky_burn_barricade,kill,,25,-1"
    "OnTrigger" "sky_burn_barricade1,kill,,50,-1"
    "OnTrigger" "sky_burn_barricade2,kill,,70,-1"
    "OnTrigger" "sky_charger_block,Kill,,70,-1"
    "OnTrigger" "sky_invisible_block_surv,kill,,70,-1"

thank you very much if it worked
AsphyxiaJLSA is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:00.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode