Rune Central

The Official Rune Quake Message Board
It is currently Tue Mar 19, 2024 7:35 am

All times are UTC - 5 hours [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Undergate QuakeC stuff I need help with (Lardarse/RocketGuy)
PostPosted: Mon Sep 04, 2006 5:58 am 
Offline

Joined: Sun Mar 09, 2003 10:47 pm
Posts: 1612
Location: Ohio
1. Lardarse's Fish Fix (done with Lardarse's help)
2. Set Alias RETURN (done with RocketGuy's help)
3. Onscreen message about current skill level and about return cmd
4. Info player start as something else (done with Lardarse's help)
5. Map return to undergate unless specific map, and list of overrides in progression. (I will do this)
6. Negate the red teleporter
7. When a player returns to undergate, need to remove all weapons, armor and runes to return to "default" fresh map state. (done with Rocket's help)


Last edited by Baker on Mon Sep 04, 2006 6:37 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 6:08 am 
Offline

Joined: Sun Mar 09, 2003 10:47 pm
Posts: 1612
Location: Ohio
#4 done (thanks Lardarse) ...

before client.qc wrote:
/*QUAKED info_player_start (1 0 0) (-16 -16 -24) (16 16 24)
The normal starting point for a level.
*/
void() info_player_start =
{
};

/*QUAKED info_player_start2 (1 0 0) (-16 -16 -24) (16 16 24)
Only used on start map for the return point from an episode.
*/
void() info_player_start2 =
{
};


AFTER:

Quote:
/*QUAKED info_player_start (1 0 0) (-16 -16 -24) (16 16 24)
The normal starting point for a level.
*/
void() info_player_start =
{
};

// new code --- info_player_mapgate special entity (code from Lardarse)
void() info_player_mapgate = { self.classname = "info_player_start"; };
// end new code

/*QUAKED info_player_start2 (1 0 0) (-16 -16 -24) (16 16 24)
Only used on start map for the return point from an episode.
*/
void() info_player_start2 =
{
};


Last edited by Baker on Mon Sep 04, 2006 6:22 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 6:19 am 
Offline

Joined: Sat Feb 18, 2006 1:27 pm
Posts: 33
Location: Bristol, UK
1:
Look near the bottom of monsters.qc and remove this line from the swimmonster_start_go function:
Code:
total_monsters = total_monsters + 1;


4:
Put this line of code somewhere near line 550 of client.qc but below the info_player_start function:
Code:
void() info_player_mapgate = { self.classname = "info_player_start"; };

Then in your map, rename the startpoint entity to info_player_mapgate
You could call it anything you like, as long az it matches the name of the spawn function that is created.


5:
I know that it's in the RQuake source code somewhere.


That's all the ones I know without looking too hard...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 6:23 am 
Offline

Joined: Sun Mar 09, 2003 10:47 pm
Posts: 1612
Location: Ohio
#1 Fish count fix per Lardarse is done.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 7:23 am 
Offline

Joined: Sun Mar 09, 2003 10:47 pm
Posts: 1612
Location: Ohio
Code:
// New code - function per RocketGuy

void () PrintStartMessage =
   {
   local string skillstring;
   
   if (skill < 1)
   skillstring = "easy";
   else if (skill == 1)
   skillstring = "normal";
   else if (skill == 2)
   skillstring = "hard";
   else
   skillstring = "nightmare";
               
                centerprint(self, "Current skill level: ", skillstring, "\n\nType RETURN to go back\nto this map at any time");
};

/*

// End New code - function per RocketGuy/Lardarse


In PlayerPostThink ...

Code:
     // start newcode provided by RocketGuy to create a "return" alias
    
     if (!self.aliased) 
     { 
       self.aliased = TRUE;
       if (world.model == "maps/undergate.bsp")
        {
        PrintStartMessage();
        }
       stuffcmd (self, "alias return /"changelevel undergate.bsp/"");
   }
       
    
     // end newcode


Last edited by Baker on Mon Sep 04, 2006 7:24 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 7:27 am 
Offline

Joined: Sun Mar 09, 2003 10:47 pm
Posts: 1612
Location: Ohio
error.log

Quote:
warning: subs.qc:25:SetMovedir: not all control paths return a value
warning: fight.qc:199:Equation requires intermediate variable
warning: fight.qc:220:Equation requires intermediate variable
warning: fight.qc:299:enemy_yaw redeclared
warning: ai.qc:368:FindTarget must return a value
warning: ai.qc:588:CheckAnyAttack must return a value
warning: items.qc:47:droptofloor: Too few parameters
warning: weapons.qc:92:org redeclared
warning: client.qc:143:FindIntermission: not all control paths return a value
error: client.qc:1162:expected ), found changelevel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 7:32 am 
Offline

Joined: Sat Feb 18, 2006 1:27 pm
Posts: 33
Location: Bristol, UK
The management would like to apologize to all viewers who believe that this forum is Baker's personal pastebin.

It's not our fault that he's a newb...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group