Touch armoury_entity
I want to use the Touch armoury_entity to give players more weapons and grenades.
PHP Code:
|
Re: Touch armoury_entity
armoury has always a max weapon clip, it's not like weaponbox.
You can retrieve weapon type using cs_get_armoury_type : http://www.amxmodx.org/funcwiki.php?go=func&id=1226 |
Re: Touch armoury_entity
cs_get_armoury_type can get the weapon's ID.
Armoury has always a max weapon clip. Generally to the two cartridges? M3 in fy_iceworld to 24 bullets. Map inside the grenade a model to the three hand grenades, some maps is one. Also: If I use engfunc (EngFunc_RemoveEntity, ient). The next round, these items will not happen again. |
Re: Touch armoury_entity
I think backpackammo is given when you pickup an armoury_entity but no number is stored into the armoury, whatever the map, when you pickup up an m3, same amount of clip and ammo are given.
Don't remove entities, set pev_effect to EF_NODRAW (that's what's happening when you pickup the weapon). |
Re: Touch armoury_entity
Quote:
I tested the code is successful: PHP Code:
|
Re: Touch armoury_entity
Btw, ent <= max_player check is not needed, you have registerer the armoury classname.
|
Re: Touch armoury_entity
Oh!I have learned.Thanks again!
|
Re: Touch armoury_entity
Continue to consult:
These two methods: Which one is better? register_touch( "armoury_entity" , "player" , "fw_ArmouryTouch" ); RegisterHam(Ham_Touch, "armoury_entity", "Ham_Touch_entity_Pre", 0); //register_forward(FM_Touch,"FM_Touch_hook") //In this way seems more trouble About touch weaponbox (From: GHW_Weap_Pickup.sma) How to find the weapon's id?(Only by model name?) How to find the weapon's bpammo? |
Re: Touch armoury_entity
In this specific case i think it's the same, i would use ham.
engine way prevents you from checking entity touched in plugin, but as you only check for players, player range check (> 0 and < maxplayers) is enough. |
Re: Touch armoury_entity
I'm having trouble with setting nodraw effect
PHP Code:
So how do I make it disappear until next round properly? |
| All times are GMT -4. The time now is 00:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.