to smartbomb properties. Now if a weapon is associated with player we will
scan for all weapons that are to be used and allow them as well to have
full control to smartbomb.
before:
if(newchar->type == TYPE_PLAYER){
newchar->dofreeze = atoi(findarg(buf+pos, 3)); // Are all animations
frozen during special
newchar->speclen = atoi(findarg(buf+pos, 4)) * GAME_SPEED;
}
after:
for(i=0; i<models_loaded; i++){
for(weap=0; weap<MAX_WEAPONS; weap++){
if(strncmp(newchar->name, model_list[i]->weapon[weap], MAX_NAME_LEN) ==
0) players_weapon = 1;
}
}
if(newchar->type == TYPE_PLAYER || players_weapon){
newchar->dofreeze = atoi(findarg(buf+pos, 3)); // Are all animations
frozen during special
newchar->speclen = atoi(findarg(buf+pos, 4)) * GAME_SPEED;
}