Raised This Month: $ Target: $400
 0% 

[SOLVED] Spawning armoury_entity gives wrong weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-05-2014 , 10:07   [SOLVED] Spawning armoury_entity gives wrong weapon
Reply With Quote #1

Hello everybody,

I try to spawn a pick-up-able smoke grenade, but I always get a auto-sniper.
What am I doing wrong?

Code:
new iEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "armoury_entity"))     new Float:flOrigin[3] flOrigin = g_flSpawnerPos[id]     flOrigin[1] += 20     set_pev(iEnt, pev_origin, flOrigin) set_pdata_int(iEnt, 34, CSW_SMOKEGRENADE, 4) set_pdata_int(iEnt, 35, 1, 4) set_pev(iEnt, pev_model, "models/w_smokegrenade.mdl")     ExecuteHamB(Ham_Spawn, iEnt)
__________________
Kia is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-05-2014 , 18:39   Re: Spawning armoury_entity gives wrong weapon
Reply With Quote #2

armoury_entity doesn't use CSW_ indexes. https://forums.alliedmods.net/showpo...5&postcount=19
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-06-2014 , 02:54   Re: Spawning armoury_entity gives wrong weapon
Reply With Quote #3

Thanks.
__________________
Kia 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 13:02.


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