El Man
«لَا إِلَٰهَ إِلَّا ٱللَّٰهُ»
- Joined
- Mar 23, 2013
- Messages
- 161
- Reaction score
- 33
how to add death/kill system in character
player.cpp
std::string Player::getDescription(int32_t lookDistance) const
{
std::stringstream s;
std::string str;
if(lookDistance == -1){
s << "yourself.";
if(getVocationId() != 0)
s << " You are " << vocation->getVocDescription() << ". You owned "<< frags << " players.";
else
s << " You have no vocation. You owned " << frags << " players.";
}
else {
s << name << " (Level " << level <<").";
if(sex == PLAYERSEX_FEMALE)
s << " She";
else
s << " He";
if(getVocationId() != 0)
s << " is "<< vocation->getVocDescription() << ". He owned " << frags << " players.";
else
s << " has no vocation. He owned " << frags << " players.";
}
i try this from tfs 0.3 but not work in evolution
need help
ty!
player.cpp
std::string Player::getDescription(int32_t lookDistance) const
{
std::stringstream s;
std::string str;
if(lookDistance == -1){
s << "yourself.";
if(getVocationId() != 0)
s << " You are " << vocation->getVocDescription() << ". You owned "<< frags << " players.";
else
s << " You have no vocation. You owned " << frags << " players.";
}
else {
s << name << " (Level " << level <<").";
if(sex == PLAYERSEX_FEMALE)
s << " She";
else
s << " He";
if(getVocationId() != 0)
s << " is "<< vocation->getVocDescription() << ". He owned " << frags << " players.";
else
s << " has no vocation. He owned " << frags << " players.";
}
i try this from tfs 0.3 but not work in evolution
need help
ty!