Ignore:
Timestamp:
Mar 18, 2008, 11:22:51 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Implement game_object::set_tint, get_tint, set_team and get_team, as well as the corresponding set_object_tint, get_object_tint, set_object_team and get_object_team LISP functions. They'll be useful for CTF mode.

Inspired by Abuse Win32 changelog from February 18, 2001:

  • Changed lisp function (set_player_color x) to

(set_object_tint x)

  • Added lisp function (get_object_tint)

Inspired by Abuse Win32 changelog from February 17, 2001:

  • Added lisp function (set_player_color x) to switch player

to color number x
see chat.lsp for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/extend.cpp

    r124 r126  
    6363  for (int i=0;i<tobjs;i++) if (objs[i]==o) return;
    6464  o->set_flags(o->flags()|KNOWN_FLAG);
     65  if(_team != -1)
     66    o->set_team(_team);
     67  if(_tint != -1)
     68    o->set_tint(_tint);
    6569  tobjs++;
    6670  objs=(game_object **)jrealloc(objs,sizeof(game_object *)*tobjs,"Object list");
     
    126130  Aistate=Aistate_time=0;
    127131  Hp=Mp=Fmp=0;
     132  _tint = -1;
     133  _team = -1;
    128134  grav_on=1;
    129135  targetable_on=1;
Note: See TracChangeset for help on using the changeset viewer.