Rune Central
http://forums.runequake.com/

Undergate QuakeC stuff I need help with (Lardarse/RocketGuy)
http://forums.runequake.com/viewtopic.php?f=13&t=1209
Page 1 of 1

Author:  Baker [ Mon Sep 04, 2006 5:58 am ]
Post subject:  Undergate QuakeC stuff I need help with (Lardarse/RocketGuy)

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)

Author:  Baker [ Mon Sep 04, 2006 6:08 am ]
Post subject: 

#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 =
{
};

Author:  Lardarse [ Mon Sep 04, 2006 6:19 am ]
Post subject: 

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...

Author:  Baker [ Mon Sep 04, 2006 6:23 am ]
Post subject: 

#1 Fish count fix per Lardarse is done.

Author:  Baker [ Mon Sep 04, 2006 7:23 am ]
Post subject: 

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

Author:  Baker [ Mon Sep 04, 2006 7:27 am ]
Post subject: 

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

Author:  Lardarse [ Mon Sep 04, 2006 7:32 am ]
Post subject: 

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...

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/