Raised This Month: $51 Target: $400
 12% 

[ H3LP ] Ham_AddPlayerItem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-21-2017 , 17:27   [ H3LP ] Ham_AddPlayerItem
Reply With Quote #1

Hi. Is there any way to use Ham_AddPlayerItem to replace a weapon with another 1? I want to replace the tf_weapon_ic with tf_weapon_rpg. This will be used on hns maps. Thanks !
DarthMan is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-22-2017 , 04:42   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #2

How exactly do you want to replace these weapons?
__________________
edon1337 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 08-22-2017 , 06:04   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #3

I don't think exactly if this will work, but you can try:

Register Ham_AddPlayerItem (pre) on tf_weapon_ic;

ExecuteHamB (tf_weapon_rpg);

Return HAM_SUPERCEDE;
__________________









Last edited by CrazY.; 08-22-2017 at 06:06.
CrazY. is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-22-2017 , 13:10   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #4

Quote:
Originally Posted by edon1337 View Post
How exactly do you want to replace these weapons?
On player spawn, I want to replace the ic with rpg and do a supercede so instead of getting the ic, the pyro will get the RPG. This will be only for the pyro class.
DarthMan is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-23-2017 , 13:48   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #5

Quote:
Originally Posted by DarthMan View Post
On player spawn, I want to replace the ic with rpg and do a supercede so instead of getting the ic, the pyro will get the RPG. This will be only for the pyro class.
What exactly are these 'ic' and 'rpg', dropped weapons ? I don't play TF so can you give an example of CS?
__________________
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-23-2017 , 13:52   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #6

Strip the first weapon and give the other one?
__________________
HamletEagle is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-23-2017 , 15:21   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
Strip the first weapon and give the other one?
Yeah, like that, but I don't want to play the pickup sound and show the weapon hud.
DarthMan is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-23-2017 , 15:48   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #8

Okay, I can try to do something for cs and see how well it works. Maybe it will work in TFC with small changes.
__________________
HamletEagle is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-23-2017 , 17:45   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
Okay, I can try to do something for cs and see how well it works. Maybe it will work in TFC with small changes.
Thanks
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-23-2017 , 17:53   Re: [ H3LP ] Ham_AddPlayerItem
Reply With Quote #10

Quote:
Originally Posted by edon1337 View Post
What exactly are these 'ic' and 'rpg', dropped weapons ? I don't play TF so can you give an example of CS?
IC stands for incendiary cannon weapon available for the pyro class and RPG is the rocket-propelled grenade available for soldiers. Each class has it's own weapons, but any of the other weapons can be added to that class by spawning the weapon.

Last edited by DarthMan; 08-23-2017 at 18:16.
DarthMan 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 03:47.


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