![]() ![]() If ( ( pPlayer->pev->weapons & (1pev), CHAN_ITEM, "scientist/sci_pain3.wav", 1, ATTN_NORM) // play the stahp sound If ( pPlayer->m_fDamageDoubler ) // If the player owns this item, then he cannot take another. PRECACHE_SOUND("scientist/sci_pain3.wav") // stahp soundīOOL CDamageDoubler :: MyTouch( CBasePlayer *pPlayer ) An item that doubles all the damage done. I have only written the basic structure of my item, at the bottom of items.cpp: Now you can pick up another item of these. After 15 seconds, the item will be removed from your inventory, and the effect will end. The concept is simple but at the same time complicated: Once you pick up the item, for 15 seconds all the damage you do with your weapons will be double. I want to create an item that doubles all the damage done by the player, but I don't know how to achieve that.Īs far as I know, there is nothing in the Half-Life source code that looks like the item I want to create, so that's why I'm asking for your help. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |