Show
Ignore:
Timestamp:
08/20/10 15:06:58 (21 months ago)
Author:
Carsten
Message:

Merged latest changes from trunk into branches/cafu_to_wx.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/branches/cafu_to_wx/Games/DeathMatch/Code/HumanPlayer.cpp

    r114 r124  
    755755                if (OldOriginZ>=State.Origin.z && fabs(State.Velocity.x)<0.1 && fabs(State.Velocity.y)<0.1 && fabs(State.Velocity.z)<0.1 && OldModelFrameNr==State.ModelFrameNr) 
    756756                { 
    757                     std::map<std::string, std::string> Props; Props["classname"]="corpse"; 
    758  
    759                     // Create a new "corpse" entity in the place where we died, or else the model disappears. 
    760                     unsigned long CorpseID=GameWorld->CreateNewEntity(Props, ServerFrameNr, VectorT()); 
    761  
    762                     if (CorpseID!=0xFFFFFFFF) 
     757                    if (ThinkingOnServerSide) 
    763758                    { 
    764                         BaseEntityT* Corpse=GameWorld->GetBaseEntityByID(CorpseID); 
    765  
    766                         Corpse->State=EntityStateT(State.Origin+VectorT(0.0, 0.0, State.Dimensions.Min.z+1728.8), VectorT(), BoundingBox3T<double>(Vector3dT()), State.Heading, 
    767                                                    0, 0, 0, 0, State.ModelIndex, State.ModelSequNr, State.ModelFrameNr, 0, 0, 0, 0, 
    768                                                    State.ActiveWeaponSlot, 0, 0.0); 
     759                        std::map<std::string, std::string> Props; Props["classname"]="corpse"; 
     760 
     761                        // Create a new "corpse" entity in the place where we died, or else the model disappears. 
     762                        unsigned long CorpseID=GameWorld->CreateNewEntity(Props, ServerFrameNr, VectorT()); 
     763 
     764                        if (CorpseID!=0xFFFFFFFF) 
     765                        { 
     766                            BaseEntityT* Corpse=GameWorld->GetBaseEntityByID(CorpseID); 
     767 
     768                            Corpse->State=EntityStateT(State.Origin+VectorT(0.0, 0.0, State.Dimensions.Min.z+1728.8), VectorT(), BoundingBox3T<double>(Vector3dT()), State.Heading, 
     769                                                       0, 0, 0, 0, State.ModelIndex, State.ModelSequNr, State.ModelFrameNr, 0, 0, 0, 0, 
     770                                                       State.ActiveWeaponSlot, 0, 0.0); 
     771                        } 
    769772                    } 
    770773