@name Grenade WORKING ON
@persist A B C Pow:entity
interval(0)
if(first()){
A=0
B=0
C=0
holoCreate(1)
holoMaterial(1,"")}
holoParentAttachment(1,owner(),"anim_attachment_RH")
holoAng(1,owner():attachmentAng("anim_attachment_RH"))
holoPos(1,owner():attachmentPos("anim_attachment_RH")+holoEntity(1):up()*2)
holoModel(1,"models/weapons/w_eq_fraggrenade_thrown.mdl")
if(owner():keyReload()&A<2){
A=28}
A-=1
if(A==10){
    Pow=propSpawn("models/weapons/w_eq_fraggrenade_thrown.mdl",holoEntity(1):pos()+holoEntity(1):forward()*25,0) 
    owner():soundPlay(1,1.40,"/weapons/grenade/tick1.wav")
    Pow:setColor(vec4(255,255,255,255))
    Pow:setTrails(1,1,1,"trails/smoke",vec(255,0,0),255,255,255)
    Pow:applyForce(holoEntity(1):forward()*70*90)
    Pow:setMass(510)
    timer("boom",4000)}
if(clk("boom")){
    G = propSpawn("models/props_phx/ball.mdl",Pow:pos(),1)
    G:propBreak()
    Pow:propBreak()}

