Announcement

Collapse
No announcement yet.

Summoning actors via a console command?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Summoning actors via a console command?

    Hi, I wish to know a way to summon actors/entities like a health box or a Fiend via the ingame console or otherwise ingame.

  • #2
    http://quakeone.com/forums/quake-hel...ers-quake.html I googled this because i don't think this is possible.
    I am like a stray dog, lost in between what I do and what I should do.
    But sometimes, all you need is Imagination.

    Comment


    • #3
      I have this feature in the small mod compilation for development purpose.
      It adds whatever monster you want around 200 quake-units in front of you.
      It is perfect to improve your playing skills or to do some weird tests, but who cares...

      The backbone of its code is (copied from smc source. Example for soldier):
      Code:
      /////// Spawns this monster type in front of player
      
      void() spawn_grunt =
      {	
      	local entity spawny;
      	local vector pos;
      
      	makevectors (self.v_angle);		// makevectors (self.angles);
      	pos = self.origin + v_forward * 177;	// declare distance towards player here
      	pos_z = self.origin_z + 25;		// will drop to floor later when its a walking monster. Will fly when its a flying one
      
      	spawny = spawn();
      
      	if (PM_InWall(spawny, pos))		// do checks if monster is spawned in walls / obstacles
      	{
      		centerprint (self, "Spawned monster is inside wall / obstacle");
      		remove (spawny);
      		return;
      	}
      	if (!PM_TraceCheck(spawny, pos))
      	{
      		centerprint (self, "Spawned monster is inside wall / obstacle");
      		remove (spawny);
      		return;
      	}
      
      	setorigin (spawny, pos);
      	spawny.angles_x = 0;				// make him always look straight
      	spawny.angles_y = self.angles_y + 180;		// make him always look towards player
      	spawny.angles_z = 0;			
      
      	spawny.do_not_replace_me = 1;			// monster will not be replaced by other SMC monsters
      	
      	spawny.think = monster_army;
      	spawny.nextthink = time + 0.5;
      };
      Last edited by Seven; 10-11-2015, 10:00 AM.

      Comment


      • #4
        Ok, but is there ready a code to spawn any actor?

        Comment


        • #5
          I don't really like plugging my own work, but I made a mod in 2009 which lets you sandbox the hell out of Quake.

          Download of Qreate 0.9
          The ModDB page, not maintained by me


          Spawn-menu


          A monster "prop" being posed in-game


          A bridge created in-game

          There is a release cooking with logical-gates and other guff that let's you create logical contraptions in-game, but it requires some unreleased assets. Nevertheless, the source-code to the thing is here.

          The readme should contain all the infos regarding the controls and the config files should be documented enough for you to customize it to your needs. If you have any feature requests, they'd be very appreciated (though I aim for compatibility with DOSQuake so some things might not be possible due to technical limitations)
          Last edited by eukos; 10-12-2015, 01:09 PM.

          Comment


          • #6
            I tried it for like months, and it is addicting! Thanks!

            Comment

            Working...
            X