it assumes there are procedures that will do some arithemtic. it assumes that on
ID: 2247356 • Letter: I
Question
it assumes there are procedures that will do some arithemtic. it assumes that one can concatenate strings of digits: means the string consisting of the digits in x followed by those in y. it works by repeatedly setting new values to u,v,bot, yop, and side as rom rthe digits of th input are worked through in pairs from left to right. Figure out what the procedure PROCX is doing. Hint :Trace its behavior when the input is 137641. Procedure PROCX: you are given a sequence of digits X as input. you are given a sequence of digits as output. 1: Group the digits in x into pairs starting from the right.(if X has an odd number of digits, the leftmost group will only have a single digit in it.) 2:start with u,v,bot,top, and side all having an inital value of 0. 3: then working you way from the left to right on the group in X, repeat the following: (1) Set bot to (bot - u)^(the next group from X). (2) Set side to 2*top. (3) Set v to the largest single digit such that v*(side^v)bot . (4) Set u to v*(side^v) . (5) Set top to top^ v. 4: The answer to return is the final value of top.
Explanation / Answer
Hi...
"say_team [phrase]"
This will bind whatever key you like to say whatever you want to your team. Don't be mean.
Bind keys for spectating
bind [key] "demo_goto -120 relative"
bind [key] "demo_goto 120 relative"
These commands will move the seek bar in a demo backwards and forwards by about 4 seconds. The number is 'ticks' and operates at about 30 a second. Test to see what you prefer for when you're analysing replays.
Lower graphics settings
dota_cheap_water 1
cl_globallight_shadow_mode 0
r_deferred_height_fog 0
r_deferred_simple_light 1
r_screenspace_aa 0
mat_vsync 0
This set of commands will turn off lots of graphics settings, making the game run better on older machines.
Instant health removal
dota_health_hurt_threshold 99999
dota_health_hurt_decay_time_max 0
dota_health_hurt_decay_time_min 0
dota_health_hurt_delay 0
dota_pain_decay 0
dota_pain_factor 0
dota_pain_fade_rate 0
dota_pain_multiplier 0
These will remove the scaling white bar that appears when a hero loses health instead just immediately setting their health bar to the new value. You can modify these numbers if you would prefer for the white bar to be there but fade quicker. While we’re on health...
Healthbar Settings
dota_health_per_vertical_marker 250
decides how much health will be shown per vertical line on the health bar. 250 is the default value. Axe players may wish for different ones, for example. To turn the lines off entirely, set it to 99999.
The Netgraph
net_graphheight 64
net_graphinsetbottom 437
net_graphinsetleft 0
net_graphinsetright -30
net_graphpos 1
net_graphproportionalfont 0
net_graphtext 1
bind F10 "showgraph"
alias "showgraph" "showgraph_off"
alias "showgraph_on" "net_graph 1; alias showgraph showgraph_off"
alias "showgraph_off" "net_graph 0; alias showgraph showgraph_on"
This set will place the netgraph, a useful set of ping readouts and other network information, in the unused space at the top right of the screen. F10 will toggle between it being on and off. It’s optimised for 1920*1080, so you might need to adjust some values if that isn’t your resolution.
Hide the Minimap
dota_no_minimap 1
Hides the minimap.
Dichromatic Minimap
dota_minimap_simple_colors 1
Stops enemies and allies showing up in different colours on the minimap. All allied units are green, all enemy ones are red.
You can also customise how enemies, allies and neutrals appear on the minimap with these commands:
dota_enemy_color_b ###
dota_enemy_color_g ###
dota_enemy_color_r ###
dota_friendly_color_b ###
dota_friendly_color_g ###
dota_friendly_color_r ###
dota_neutral_color_b ###
dota_neutral_color_g ###
dota_neutral_color_r ###
These use standard blue/red/green colour definitions. Here’s a handy tool for finding out which colours are what.
Flip the HUD
dota_hud_flip 1
Moves the minimap to be in the bottom right hand corner of the screen.
Colourblind Mode
dota_hud_colorblind 1
Enables colour blind mode.
Heroes More Visible On Minimap
dota_minimap_hero_size 1000
Changes the size of hero icons on the minimap. The default is 600, 1000 or so makes it much more obvious out of the corner of your eye.
Longer Pings On Minimap
dota_minimap_ping_duration 3
Changes how long pings remain on the minimap for in seconds. 3 is the default value.
Change the FPS Cap
fps_max 120
Sets the maximum FPS for the game. 120 is the default value.
Enable Range Finder
dota_disable_range_finder 0
Turns on a little green line between your hero and cursor whenever you start targeting an ability. If the line disappears you’re out of range.
Enable Quick Self-casting
dota_ability_quick_cast 1
Makes double tapping an ability or item button use it on yourself.
Disable Auto-attack
dota_player_units_auto_attack 0
Disables auto-attack for your hero.
Right Click Denying
dota_force_right_click_attack 1
Turns on ‘right click deny’ - you don’t have to press the attack key and then left click on friendly minions to hit them, you just right click as you would on enemies.
Prevent Minimap Misclicks
dota_minimap_misclick_time 0.2
The time in seconds that the mouse must be over the minimap before a move command can be issued. Prevents misclicks when running away. Set to 0 if you’d rather have an instantly responsive minimap, or 9999 if you don’t want it to be usable at all.
thanks
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.