in the Ammo.shader in Urban Terror 4.1 it has came apparent that there is already Flash Grenades already in there
zpak000_assets.pk3 > Scripts > Ammo.shader
icons/ammo/grenade_flash
{
nopicmip
{
map icons/ammo/grenade_flash.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}
I have wrote my own little thing in the Entities.def to include this.
/*QUAKED ut_weapon_grenade_flash (0.3 0.9 0.4)(-5 -5 -5) (5 5 5)
-------- KEYS --------
count: sets the amount of ammo given to the player when picked up (default 2).
gametype : Specifies gametypes for the weapon to be in in. If this key is not used, the weapon will be in all gametypes. List types in this format: 01234
-------- SPAWNFLAGS --------
spawnflags : set to 1 to make suspended so the item will spawn where it was placed in map and won't drop to the floor. (default 0)
-------- Notes --------
A count has to be set in order for ammo to be in the weapon when picked up
the count system is very weird and I am unable to figure out how it works,
but here are some usefull numbers
count of 30 = 30 bullets 0 clips
count of 500 = 30 bullets 1 clip
count of 1000 = 30 bullets 2 clips
*/
***NOTE***
All my files will be included in this post.
****EDIT****: Updated my Entities.def && Took out all the obselete stuff.
[attachment no longer available]