Raised This Month: $ Target: $400
 0% 

Thrown Grenade Types?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xenogenetics
Member
Join Date: Jul 2007
Old 12-09-2007 , 16:42   Thrown Grenade Types?
Reply With Quote #1

I am trying to figure out what differentiates a thrown henade entity from anyother type (gasnade, flashnade) in Counter-Strike. I tried to use entmod but the thrown henade shows up as a grenade, and when I try to spawn it I get what I am guessing is a generic grenade. All the generic grenade does is bounce and have the model from the half-life grenade launcher.

Is it a spawnflag or some keyvalue that I need?

help plz.
Xenogenetics is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 12-10-2007 , 04:33   Re: Thrown Grenade Types?
Reply With Quote #2

How to create one?
Not entirely sure.

The general method people use to find out what it is is the model.
purple_pixie is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-10-2007 , 06:06   Re: Thrown Grenade Types?
Reply With Quote #3

I guess you have to do this :

Set the classname to armoury_entity
Set the model to w_hegrenade.mdl

Then you have to set the armoury offset :

#define OFFSET_ARMOURY_TYPE 34
#define EXTRAOFFSET_WEAPONS 4
#define CSA_HEGRENADE 15

set_pdata_int(entity, OFFSET_ARMOURY_TYPE, CSA_HEGRENADE, EXTRAOFFSET_WEAPONS)


The last part can be done with native cs_set_armoury_type if you use cstrike module.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 12-10-2007 , 07:20   Re: Thrown Grenade Types?
Reply With Quote #4

You still have to figure out how to prime it though. In DoDx, we have natives for that. Not sure what they do off the top of my head, but you can check out the dodx source - it probably alters the grenades pdata somewhere.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 12-10-2007 , 07:35   Re: Thrown Grenade Types?
Reply With Quote #5

I thought you just set nextthink.

I'm almost sure that's what you change to delay it, so I should assume (great idea ... ) that's all that's needed to prime it.
purple_pixie is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-10-2007 , 08:04   Re: Thrown Grenade Types?
Reply With Quote #6

My bad, i just explained how to make a henade that you can pick up...

So i think that this could be usefull : http://forums.alliedmods.net/showpos...9&postcount=91
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode