
12-09-2002, 08:42 PM
About a vote for shotgun/launcher.. Since Leaning and Launching are both dmflags. It will be extremely difficult to have a vote for each of them. Due to the fact that a vote to disable the launcher wouldn't no if leaning is currently enabled or disabled. So it wouldn't know what dmflags number to use.
But I don't think it's impossible.. It might be as easy as...
[code:f9257]"Lean + Move" "" list
{
"Enable" "add dmflags 262144"
"Disable" "subtract dmflags 262144"
}
"n00b Launcher" "" list
{
"Enable" "subtract dmflags 1048576"
"Disable" "add dmflags 1048576"
}[/code:f9257]
But this will surely cause problems when morons start voting to enable something that's already enabled. Or disable something that's already disabled..
The next viable solution is to have the vote execute a script (scr) file. That scr file would be setup to determine what the currently used dmflags are. Then only make the adjustment if necessary.
|