Original Post
Since I'm not totally complete in my C++ classes (still need C++ II before I'm done with the core concepts) I'm coming up with some questions while going through the source code the Source SDK installs for my basic screwing around with mod. (I plan to be a coder for a serious one of my own design eventually) The first bit I saw in the grenade_frag.cpp file. It's an implementation file for the grenade_frag class.
if( GetOwnerEntity() && GetOwnerEntity()->IsPlayer() )
{
m_flDamage = sk_plr_dmg_fraggrenade.GetFloat();
m_DmgRadius = sk_fraggrenade_radius.GetFloat();
}
else
{
m_flDamage = sk_npc_dmg_fraggrenade.GetFloat();
m_DmgRadius = sk_fraggrenade_radius.GetFloat();
}
It's a decision structure I found in the Spawn method of the class. I am pretty sure that it's saying if the grenade is both owned AND owned by the player, it executes the first bit. What I do not understand is what the -> means. It's not any of the binary simbols I've seen, but it seems to be linking the two together. I'm sure it means that the grenade is owned by the player, but not sure what the symbol is or means. M.