My DMflags look all silly. How do I add that.

Joined
Oct 25, 2005
Likes
0
#1
// 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.:eek:
 
Joined
Oct 25, 2005
Likes
0
#3
still what should I add in this equation??

// 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
 
Joined
Oct 25, 2005
Likes
0
#6
That does not work i've been doing that from the beginnig.

FA155mm said:
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.:eek:
 

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
12
#7
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
 
Joined
Oct 25, 2005
Likes
0
#8
rudedog said:
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
// 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

Administrator
Staff member
Joined
Oct 23, 2002
Likes
12
#9
Yes

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

Code:
exec your_cfg_file_name.cfg
 
Top Bottom