PDA

View Full Version : My DMflags look all silly. How do I add that.


stubyph
10-25-2005, 09:56 PM
// dmflags -- flags that can be set in the dmflags variable.
// DF_NO_HEALTH (1 << 0)
// DF_NO_POWERUPS (1 << 1)
// DF_WEAPONS_STAY (1 << 2)
// DF_NO_FALLING (1 << 3)
// DF_INSTANT_ITEMS (1 << 4)
// DF_SAME_LEVEL (1 << 5)
// DF_NO_ARMOR (1 << 11)
// DF_INFINITE_AMMO (1 << 14)
// DF_NO_FOOTSTEPS (1 << 17)
// DF_ALLOW_LEAN (1 << 18)
// DF_OLD_SNIPERRIFLE (1 << 19)
// DF_GERMAN_SHOTGUN (1 << 20)
// DF_ALLOW_OLDMAP_MINES (1 << 21)
set dmflags 0

I know where to type the total but whats the number??
I guess I'm horrible in algebra.:o

FA155mm
10-25-2005, 11:25 PM
try this

http://www.aaahaulaway.com/izzo/dmflags.html

stubyph
10-26-2005, 05:23 AM
// dmflags -- flags that can be set in the dmflags variable.
// DF_NO_HEALTH (1 << 0)
// DF_NO_POWERUPS (1 << 1)
// DF_WEAPONS_STAY (1 << 2)
// DF_NO_FALLING (1 << 3)
// DF_INSTANT_ITEMS (1 << 4)
// DF_SAME_LEVEL (1 << 5)
// DF_NO_ARMOR (1 << 11)
// DF_INFINITE_AMMO (1 << 14)
// DF_NO_FOOTSTEPS (1 << 17)
// DF_ALLOW_LEAN (1 << 18)
// DF_OLD_SNIPERRIFLE (1 << 19)
// DF_GERMAN_SHOTGUN (1 << 20)
// DF_ALLOW_OLDMAP_MINES (1 << 21)
set dmflags (2<<32)

(1<<18)+(1<<14)= (2<<32)
Hows that lok for the answer?:p

stubyph
10-26-2005, 05:28 AM
try this

http://www.aaahaulaway.com/izzo/dmflags.html

I figure somehting has to be diffrent from my server than others
some diffrent operation I must go through to make my flags work???

FA155mm
10-26-2005, 05:39 AM
set dmflags 278528

stubyph
10-26-2005, 06:18 AM
set dmflags 278528



// dmflags -- flags that can be set in the dmflags variable.
// DF_NO_HEALTH (1 << 0)
// DF_NO_POWERUPS (1 << 1)
// DF_WEAPONS_STAY (1 << 2)
// DF_NO_FALLING (1 << 3)
// DF_INSTANT_ITEMS (1 << 4)
// DF_SAME_LEVEL (1 << 5)
// DF_NO_ARMOR (1 << 11)
// DF_INFINITE_AMMO (1 << 14)
// DF_NO_FOOTSTEPS (1 << 17)
// DF_ALLOW_LEAN (1 << 18)
// DF_OLD_SNIPERRIFLE (1 << 19)
// DF_GERMAN_SHOTGUN (1 << 20)
// DF_ALLOW_OLDMAP_MINES (1 << 21)
set dmflags (2<<32)

(1<<18)+(1<<14)= (2<<32)
Hows that look for the answer?
set dmflags 278528

How did you get that answer?? What # did you add I don't see that?? It doess nothing as well.:o

rudedog
10-26-2005, 07:28 AM
From my guide in our guides section
// DF_NO_HEALTH 1
// DF_NO_POWERUPS 2
// DF_WEAPONS_STAY 4
// DF_NO_FALLING 8
// DF_INSTANT_ITEMS 16
// DF_SAME_LEVEL 32
// DF_NO_ARMOR 2048
// DF_INFINITE_AMMO 16384
// DF_NO_FOOTSTEPS 131072
// DF_ALLOW_LEAN 262144
// DF_OLD_SNIPERRIFLE 524288
// DF_GERMAN_SHOTGUN 1048576

Here all the flags have been converted to actual numbers. you will notice that every line is doubled starting with (1<<0)= 1 so (1<<1)=2 and (1<<3)=4 and so on.

My guide does not have allow oldmap mines (1<<21) but we can calculate that by doubling german shotgun (1<<20)

// DF_NO_HEALTH (1 << 0)
// DF_NO_POWERUPS (1 << 1)
// DF_WEAPONS_STAY (1 << 2)
// DF_NO_FALLING (1 << 3)
// DF_INSTANT_ITEMS (1 << 4)
// DF_SAME_LEVEL (1 << 5)
// DF_NO_ARMOR (1 << 11)
// DF_INFINITE_AMMO (1 << 14)
// DF_NO_FOOTSTEPS (1 << 17)
// DF_ALLOW_LEAN (1 << 18)
// DF_OLD_SNIPERRIFLE (1 << 19)
// DF_GERMAN_SHOTGUN (1 << 20) = 1048576 based on the above
// DF_ALLOW_OLDMAP_MINES (1 << 21) so this would be 1048576 X 2 = 2097152

Now simply add the converted numbers together to get your dm flag

stubyph
10-26-2005, 08:35 AM
From my guide in our guides section
// DF_NO_HEALTH 1
// DF_NO_POWERUPS 2
// DF_WEAPONS_STAY 4
// DF_NO_FALLING 8
// DF_INSTANT_ITEMS 16
// DF_SAME_LEVEL 32
// DF_NO_ARMOR 2048
// DF_INFINITE_AMMO 16384
// DF_NO_FOOTSTEPS 131072
// DF_ALLOW_LEAN 262144
// DF_OLD_SNIPERRIFLE 524288
// DF_GERMAN_SHOTGUN 1048576

Here all the flags have been converted to actual numbers. you will notice that every line is doubled starting with (1<<0)= 1 so (1<<1)=2 and (1<<3)=4 and so on.

My guide does not have allow oldmap mines (1<<21)[COLOR=#ff3300] but we can calculate that by doubling german shotgun (1<<20)

// DF_NO_HEALTH 1
// DF_NO_POWERUPS 2
// DF_WEAPONS_STAY 4
// DF_NO_FALLING 8
// DF_INSTANT_ITEMS 16
// DF_SAME_LEVEL 32
// DF_NO_ARMOR 64
// DF_INFINITE_AMMO 2048
// DF_NO_FOOTSTEPS 16384
// DF_ALLOW_LEAN 131072
// DF_OLD_SNIPERRIFLE 262144
// DF_GERMAN_SHOTGUN 524288
// DF_ALLOW_OLDMAP_MINES 1048576
Now simply add the converted numbers together to get your dm flag

So would this setup allow inf ammo?

// DF_NO_HEALTH 1
// DF_NO_POWERUPS 2
// DF_WEAPONS_STAY 4
// DF_NO_FALLING 8
// DF_INSTANT_ITEMS 16
// DF_SAME_LEVEL 32
// DF_NO_ARMOR 64
// DF_INFINITE_AMMO 2048
// DF_NO_FOOTSTEPS 16384
// DF_ALLOW_LEAN 131072
// DF_OLD_SNIPERRIFLE 262144
// DF_GERMAN_SHOTGUN 524288
// DF_ALLOW_OLDMAP_MINES 1048576
set dmflags 2048
correct

rudedog
10-26-2005, 08:46 AM
Yes

Place that in your cfg and restart or reload the cfg via console using

exec your_cfg_file_name.cfg