1 | /* |
1 | /* |
2 | * static char *rcsid_player_c = |
2 | * static char *rcsid_player_c = |
3 | * "$Id: player.c,v 1.17 2006/05/22 14:31:52 root Exp $"; |
3 | * "$Id: player.c,v 1.19 2006/06/02 01:32:36 pippijn Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
265 | p->last_speed= -1; |
265 | p->last_speed= -1; |
266 | p->shoottype=range_none; |
266 | p->shoottype=range_none; |
267 | p->bowtype=bow_normal; |
267 | p->bowtype=bow_normal; |
268 | p->petmode=pet_normal; |
268 | p->petmode=pet_normal; |
269 | p->listening=10; |
269 | p->listening=10; |
|
|
270 | p->usekeys=containers; |
270 | p->last_weapon_sp= -1; |
271 | p->last_weapon_sp= -1; |
271 | p->peaceful=1; /* default peaceful */ |
272 | p->peaceful=1; /* default peaceful */ |
272 | p->do_los=1; |
273 | p->do_los=1; |
273 | p->explore=0; |
274 | p->explore=0; |
274 | p->no_shout=0; /* default can shout */ |
275 | p->no_shout=0; /* default can shout */ |
… | |
… | |
2671 | |
2672 | |
2672 | /* Lauwenmark: Handle for plugin death event */ |
2673 | /* Lauwenmark: Handle for plugin death event */ |
2673 | if (execute_event(op, EVENT_DEATH,NULL,NULL,NULL,SCRIPT_FIX_ALL) != 0) |
2674 | if (execute_event(op, EVENT_DEATH,NULL,NULL,NULL,SCRIPT_FIX_ALL) != 0) |
2674 | return; |
2675 | return; |
2675 | |
2676 | |
|
|
2677 | command_kill_pets (op, 0); |
|
|
2678 | |
2676 | /* Lauwenmark: Handle for the global death event */ |
2679 | /* Lauwenmark: Handle for the global death event */ |
2677 | execute_global_event(EVENT_PLAYER_DEATH, op); |
2680 | execute_global_event(EVENT_PLAYER_DEATH, op); |
2678 | if(op->stats.food<0) { |
2681 | if(op->stats.food<0) { |
2679 | if (op->contr->explore) { |
2682 | if (op->contr->explore) { |
2680 | new_draw_info(NDI_UNIQUE, 0,op,"You would have starved, but you are"); |
2683 | new_draw_info(NDI_UNIQUE, 0,op,"You would have starved, but you are"); |