2019-08-31 19:18:15 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016-2019 Marco Hladik <marco@icculus.org>
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
|
|
|
|
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
2018-12-30 17:00:38 -08:00
|
|
|
|
2019-09-06 20:37:06 -07:00
|
|
|
/*QUAKED monster_generic (1 0 0) (-8 -8 -8) (8 8 8)
|
|
|
|
"targetname" Name
|
|
|
|
"angles" Sets the pitch, yaw and roll angles of the model.
|
|
|
|
"model" Model file that will be displayed by the entity.
|
|
|
|
|
|
|
|
Decorative, does nothing yet.
|
|
|
|
*/
|
|
|
|
|
2020-03-27 08:26:52 -07:00
|
|
|
class monster_generic:CBaseMonster
|
2018-12-30 17:00:38 -08:00
|
|
|
{
|
2019-01-02 17:26:39 -08:00
|
|
|
void() monster_generic;
|
2018-12-30 17:00:38 -08:00
|
|
|
//virtual void() Respawn;
|
|
|
|
};
|
|
|
|
|
2019-01-02 17:26:39 -08:00
|
|
|
void monster_generic :: monster_generic ( void )
|
2018-12-30 17:00:38 -08:00
|
|
|
{
|
|
|
|
for ( int i = 1; i < ( tokenize( __fullspawndata ) - 1 ); i += 2 ) {
|
|
|
|
switch ( argv( i ) ) {
|
|
|
|
case "sequence":
|
|
|
|
frame = stof( argv( i + 1 ) );
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
precache_model( model );
|
|
|
|
setmodel( this, model );
|
|
|
|
CBaseEntity::CBaseEntity();
|
2019-09-08 03:18:19 -07:00
|
|
|
droptofloor();
|
|
|
|
|
2018-12-30 17:00:38 -08:00
|
|
|
#if 0
|
|
|
|
self.movetype = MOVETYPE_NOCLIP;
|
|
|
|
self.solid = SOLID_NOT;
|
|
|
|
self.avelocity = '0 90 0 ';
|
|
|
|
self.modelflags = MF_ROTATE;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|