Author Topic: Increasing variables?  (Read 2512 times)

Br55HiT

  • 68 Carbine
  • Posts: 351
Increasing variables?
« on: November 10, 2008, 12:04:00 PM »
Is there a command to change a variable in DP like the cvar_inc only without it having to be a cvar command?  Like to just change a variable up or down without it having to be a command.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Increasing variables?
« Reply #1 on: November 10, 2008, 05:08:17 PM »
Bind cvar_inc to a key.  :P

Br55HiT

  • 68 Carbine
  • Posts: 351
Re: Increasing variables?
« Reply #2 on: November 10, 2008, 07:07:12 PM »
But I want to increase a variable without using a command in it.  Like in irc just using inc %i not like cvar_inc sensitivity 1. 

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Increasing variables?
« Reply #3 on: November 10, 2008, 09:37:22 PM »
Um, everything is a command.  Period.  Everything from moving, to talking, to dropping a gun, to changing a setting.  You have to "command" it to change (if you wanna look at it that way) or its just gonna sit there.

Br55HiT

  • 68 Carbine
  • Posts: 351
Re: Increasing variables?
« Reply #4 on: November 10, 2008, 09:56:36 PM »
Like you can't do set blah 1.  Then do cvar_inc blah 1.  It won't increase blah which is what I want to do.

I don't know if that is a better way of asking?

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Increasing variables?
« Reply #5 on: November 11, 2008, 12:34:25 AM »
You might have to use cvar_set to be able to do that one.

Br55HiT

  • 68 Carbine
  • Posts: 351
Re: Increasing variables?
« Reply #6 on: November 11, 2008, 09:28:16 AM »
It says that's an unknown command...  :-\

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Increasing variables?
« Reply #7 on: November 13, 2008, 10:18:06 AM »
What are you trying to accomplish?

You could do "set blah 1; cvar_inc blah 1", but why not just do "set blah 2"?

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Increasing variables?
« Reply #8 on: November 13, 2008, 10:33:48 AM »
Perhaps a crosshair scroller.

Br55HiT

  • 68 Carbine
  • Posts: 351
Re: Increasing variables?
« Reply #9 on: November 14, 2008, 10:04:35 AM »
For a specinvite script.

Herron

  • VM-68
  • Posts: 235
Re: Increasing variables?
« Reply #10 on: November 15, 2008, 04:04:19 PM »
Like you can't do set blah 1.  Then do cvar_inc blah 1.  It won't increase blah which is what I want to do.

I don't know if that is a better way of asking?

Works for me (build 22)...