Exemplo n.º 1
0
 void changedplayermodel()
 {
     if(player1->clientnum < 0) player1->playermodel = playermodel;
     if(player1->ragdoll) cleanragdoll(player1);
     loopv(ragdolls) 
     {
         fpsent *d = ragdolls[i];
         if(!d->ragdoll) continue;
         if(!forceplayermodels)
         {
             const playermodelinfo *mdl = getplayermodelinfo(d->playermodel);
             if(mdl && (mdl->selectable || allplayermodels)) continue;
         }
         cleanragdoll(d);
     }
     loopv(players)
     {
         fpsent *d = players[i];
         if(d == player1 || !d->ragdoll) continue;
         if(!forceplayermodels)
         {
             const playermodelinfo *mdl = getplayermodelinfo(d->playermodel);
             if(mdl && (mdl->selectable || allplayermodels)) continue;
         }
         cleanragdoll(d);
     }
 }
Exemplo n.º 2
0
    ~dynent()
    {
#ifndef STANDALONE
        extern void cleanragdoll(dynent *d);
        if(ragdoll) cleanragdoll(this);
#endif
    }