You are viewing our Forum Archives. To view or take place in current topics click here.
Simple Coding Help Needed
Posted:

Simple Coding Help NeededPosted:

fgtzachattack
  • Junior Member
Status: Offline
Joined: Jan 25, 201113Year Member
Posts: 57
Reputation Power: 2
Status: Offline
Joined: Jan 25, 201113Year Member
Posts: 57
Reputation Power: 2
so im editing the motion flex menu and i want to add some vision Dvars in to the menu. do i have to put them in a function and then call on the function or can i just put it in to the menu as is and would it be toggleable, if not how do i make it toggleable? plz help

these r sum.
self setClientDvar( "2bind1", "bind2 BUTTON_X toggle r_colorMap 2 1" );
self setClientDvar( "2bind2", "bind2 BUTTON_X toggle r_specularMap 2 1" );
self setClientDvar( "2bind3", "bind2 BUTTON_X toggle r_fullbright 0 1" );
self setClientDvar( "2bind4", "bind2 BUTTON_X toggle r_flamefx_enable 1 0" );
self setClientDvar( "2bind5", "bind2 BUTTON_X toggle r_revivefx_debug 1 0" );
self setClientDvar( "2bind6", "bind2 BUTTON_X r_lightTweakSunColor 0 0.3 1" );
#2. Posted:
TTG-Coder
  • TTG Addict
Status: Offline
Joined: Jun 05, 201113Year Member
Posts: 2,609
Reputation Power: 113
Status: Offline
Joined: Jun 05, 201113Year Member
Posts: 2,609
Reputation Power: 113
fgtzachattack wrote so im editing the motion flex menu and i want to add some vision Dvars in to the menu. do i have to put them in a function and then call on the function or can i just put it in to the menu as is and would it be toggleable, if not how do i make it toggleable? plz help

these r sum.
self setClientDvar( "2bind1", "bind2 BUTTON_X toggle r_colorMap 2 1" );
self setClientDvar( "2bind2", "bind2 BUTTON_X toggle r_specularMap 2 1" );
self setClientDvar( "2bind3", "bind2 BUTTON_X toggle r_fullbright 0 1" );
self setClientDvar( "2bind4", "bind2 BUTTON_X toggle r_flamefx_enable 1 0" );
self setClientDvar( "2bind5", "bind2 BUTTON_X toggle r_revivefx_debug 1 0" );
self setClientDvar( "2bind6", "bind2 BUTTON_X r_lightTweakSunColor 0 0.3 1" );
unless you have coding experience, i wouldnt bother doing it. you need to understand how the infectable menu works before, and you need to have decent svg modding experience
#3. Posted:
fgtzachattack
  • Junior Member
Status: Offline
Joined: Jan 25, 201113Year Member
Posts: 57
Reputation Power: 2
Status: Offline
Joined: Jan 25, 201113Year Member
Posts: 57
Reputation Power: 2
im not trying to put it in an infectable menu. i want to have it toggleable in the actual menu.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.