add DP_CON_SET support
This commit is contained in:
		
							parent
							
								
									3d627c7530
								
							
						
					
					
						commit
						6933e8bf68
					
				| 
						 | 
					@ -8,6 +8,10 @@ alias pronoun_xey    "impulse 26"
 | 
				
			||||||
alias pronoun_ze_hir "impulse 27"
 | 
					alias pronoun_ze_hir "impulse 27"
 | 
				
			||||||
alias pronoun_ze_zir "impulse 28"
 | 
					alias pronoun_ze_zir "impulse 28"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set sc_cheats    0
 | 
				
			||||||
 | 
					set sc_lives     0
 | 
				
			||||||
 | 
					set sc_dist_ammo 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo "To change your pronouns in-game use one of the pronoun_ commands."
 | 
					echo "To change your pronouns in-game use one of the pronoun_ commands."
 | 
				
			||||||
echo "You can get a list by typing 'pronoun_' and pressing tab."
 | 
					echo "You can get a list by typing 'pronoun_' and pressing tab."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -269,6 +269,8 @@ string(string s) precache_file2 = #77; // registered version only
 | 
				
			||||||
// set parm1... to the values at level start for coop respawn
 | 
					// set parm1... to the values at level start for coop respawn
 | 
				
			||||||
void(entity e) setspawnparms = #78;
 | 
					void(entity e) setspawnparms = #78;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					float(string s) checkextension = #99;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// constants -----------------------------------------------------------------|
 | 
					// constants -----------------------------------------------------------------|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const vector VEC_ORIGIN = '0 0 0';
 | 
					const vector VEC_ORIGIN = '0 0 0';
 | 
				
			||||||
| 
						 | 
					@ -632,6 +634,8 @@ float sf_dist_ammo;
 | 
				
			||||||
float player_respawned;
 | 
					float player_respawned;
 | 
				
			||||||
float all_players_are_dead;
 | 
					float all_players_are_dead;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					float ext_con_set;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// fields --------------------------------------------------------------------|
 | 
					// fields --------------------------------------------------------------------|
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// world fields
 | 
					// world fields
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,6 +17,12 @@ void() worldspawn = {
 | 
				
			||||||
	lastspawn = world;
 | 
						lastspawn = world;
 | 
				
			||||||
	InitBodyQue();
 | 
						InitBodyQue();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if(cvar("pr_checkextension")) {
 | 
				
			||||||
 | 
							if(checkextension("DP_CON_SET")) {
 | 
				
			||||||
 | 
								ext_con_set = TRUE;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// custom map attributes
 | 
						// custom map attributes
 | 
				
			||||||
	if(self.model == "maps/e1m8.bsp") {
 | 
						if(self.model == "maps/e1m8.bsp") {
 | 
				
			||||||
		cvar_set("sv_gravity", "100");
 | 
							cvar_set("sv_gravity", "100");
 | 
				
			||||||
| 
						 | 
					@ -184,12 +190,18 @@ void() StartFrame = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	teamplay   = cvar("teamplay");
 | 
						teamplay   = cvar("teamplay");
 | 
				
			||||||
	skill      = cvar("skill");
 | 
						skill      = cvar("skill");
 | 
				
			||||||
	temp1flag  = cvar("temp1");
 | 
					 | 
				
			||||||
	framecount = framecount + 1;
 | 
						framecount = framecount + 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if(ext_con_set) {
 | 
				
			||||||
 | 
							sf_cheats    = cvar("sc_cheats");
 | 
				
			||||||
 | 
							sf_lives     = cvar("sc_lives");
 | 
				
			||||||
 | 
							sf_dist_ammo = cvar("sc_dist_ammo");
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							temp1flag    = cvar("temp1");
 | 
				
			||||||
		sf_cheats    = (temp1flag & SF_CHEATS) != 0;
 | 
							sf_cheats    = (temp1flag & SF_CHEATS) != 0;
 | 
				
			||||||
		sf_lives     = bit_shift_right(temp1flag & SF_LIVES_MSK, SF_LIVES_BEG);
 | 
							sf_lives     = bit_shift_right(temp1flag & SF_LIVES_MSK, SF_LIVES_BEG);
 | 
				
			||||||
		sf_dist_ammo = (temp1flag & SF_DIST_AMMO) != 0;
 | 
							sf_dist_ammo = (temp1flag & SF_DIST_AMMO) != 0;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(all_players_are_dead) {
 | 
						if(all_players_are_dead) {
 | 
				
			||||||
		delta = time - all_players_are_dead;
 | 
							delta = time - all_players_are_dead;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										4
									
								
								todo
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								todo
									
									
									
									
									
								
							| 
						 | 
					@ -9,11 +9,12 @@ rename all functions to be lower_underscore
 | 
				
			||||||
 | 
					
 | 
				
			||||||
core features:
 | 
					core features:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add registercvar support
 | 
					all done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
useful features:
 | 
					useful features:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
configurable enemy stats
 | 
					configurable enemy stats
 | 
				
			||||||
 | 
					impulse command for spectating
 | 
				
			||||||
indicators for where other players are
 | 
					indicators for where other players are
 | 
				
			||||||
users can cancel map ends ("<name> initiated travel to <mapname>")
 | 
					users can cancel map ends ("<name> initiated travel to <mapname>")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,6 +29,7 @@ third person player weapon models
 | 
				
			||||||
 | 
					
 | 
				
			||||||
done:
 | 
					done:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					add registercvar support
 | 
				
			||||||
corpse pickups have keys
 | 
					corpse pickups have keys
 | 
				
			||||||
custom pronouns
 | 
					custom pronouns
 | 
				
			||||||
distributed ammo
 | 
					distributed ammo
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user