Dr Brain wrote: |
Make a fake player and have it send L4 (3 in the packet; levels start at 0) thors on top of everyone you want to kill. |
Dr Brain wrote: |
Take a look at this module for Hyperspace. You'll have to convert the .h file to have the python comments. I'm not sure the exact syntax for that.
I made it into a module to handle things like safe zones and killing adjacent players. |
Code: Show/Hide #ifndef HS_KILL_H
#define HS_KILL_H #define I_HS_KILL "hs_kill-3" typedef struct Ihskill { INTERFACE_HEAD_DECL /* pyint: use */ void (*kill)(Player *p, const char *killer, int blast, int onlyTeam); //kill a player. blast will make it affect others, onlyTeam will limit the blast to teammates /* pyint: player, string, int, int -> void */ void (*load)(const char *name, Arena *arena); //load a killer into the arena /* pyint: string, arena -> void */ void (*unload)(const char *name, Arena *arena); //unload a killer /* pyint: string, arena -> void */ } Ihskill; #endif //HS_KILL_H |