Create an account

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Console Tips & Tricks

I understand (i think) the logics, but fail with code, i tried ""bx_if_not_eq ${bx_weapon} blaster; bx_if_eq ${bx_weapon} blaster weaplast"" but failed

Split your commands into parts and find out where they fail. Also keep in mind the console is retarded and broken in various ways - e.g. you can't set a cvar and read the new value in one alias - it'll keep using the old value presumably because cvar expansion happens too early. You have to split it into multiple aliases - this will first print old_value, then new_value:
set some_cvar old_value
alias step1 "set some_cvar new_value ; echo $some_cvar ; step2"
alias step2 "echo $some_cvar"

Another issue is that nested curly braces are broken so stuff like
${${1 !}}
won't work - again you have to split it into multiple steps.
[Image: 30381.jpg]

<packer> when i see martin-t's name my blood pressure increases

<[BOT]Hоtdоg> anyone here lives near martin?
<[BOT]Hоtdоg> will pay monies for shooting him

Possibly Related Threads...
Thread Author Replies Views Last Post
  Console Commands Tutorial Beagle 4 5,785 03-10-2016, 05:53 PM
Last Post: -z-
  kojns video tips and creation thread kojn^ 10 10,552 03-03-2014, 03:11 PM
Last Post: deoxys
  Disabling console print in upper-left corner Zxen 4 4,600 12-11-2012, 06:43 PM
Last Post: s1lence
  Video Creation Tips & Tricks Antibody 10 19,075 11-07-2012, 12:33 PM
Last Post: rocknroll237

Forum Jump:

Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-