Skip to content

Instantly share code, notes, and snippets.

@Pinsplash
Created September 7, 2024 13:46
Show Gist options
  • Save Pinsplash/3c5078037a19461d624b54ec7783c12f to your computer and use it in GitHub Desktop.
Save Pinsplash/3c5078037a19461d624b54ec7783c12f to your computer and use it in GitHub Desktop.
Portal 2: Make all gel conversion gel without modifying maps
ent_fire prop_paint_bomb addoutput "painttype 3"
echo "run at the very start of the level for best results (this message does not know if you did or not)"
alias bomb3 "exec bombtype3"
ent_create point_clientcommand
ent_create logic_timer
ent_fire logic_timer addoutput "ontimer point_clientcommand:command:bomb3:0:-1"
echo "use <ent_fire logic_timer enable> now if bombs have not already changed color or are doing so unreliably"
ent_fire info_paint_sprayer changepainttype 3
ent_fire erase_cleanser kill
exec spheretype3
echo "if there is still gel on surfaces that is unchanged, try using <ent_fire info_paint_sprayer start> followed by <ent_fire info_paint_sprayer stop> shoftly after, or <ent_fire paint_sphere paint>"
ent_fire paint_sphere addoutput "paint_type 3"
@Pinsplash
Copy link
Author

Put all 3 of these in /Portal 2/portal2/cfg/ and type exec forceconversiongel at the very start of a map.

@jfmherokiller
Copy link

i am kind of surprised you can create logic_timers during runtime atleast in previous games eg hl2dm or the like it could crash the server/client.

@Roachisserie
Copy link

wouldn't it be easier to put these commands into server.cfg?

@Pinsplash
Copy link
Author

don't know. there's a chance that runs before the entities exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment