Raised This Month: $ Target: $400
 0% 

TF2 Giving weapons to another class


Post New Thread Reply   
 
Thread Tools Display Modes
The JCS
AlliedModders Donor
Join Date: Jan 2007
Location: Brazil
Old 09-17-2008 , 17:50   Re: TF2 Giving weapons to another class
Reply With Quote #41

Try the names:
Quote:
tf_weapon_scattergun
tf_weapon_pistol_scout
tf_weapon_bat
tf_weapon_rocketlauncher
tf_weapon_shotgun_soldier
tf_weapon_shovel
tf_weapon_flamethrower
tf_weapon_shotgun_pyro
tf_weapon_fireaxe
tf_weapon_pipebomblauncher
tf_weapon_grenadelauncher
tf_weapon_bottle
tf_weapon_minigun
tf_weapon_shotgun_hwg
tf_weapon_fists
tf_weapon_shotgun_primary
tf_weapon_pistol
tf_weapon_wrench
tf_weapon_pda_engineer_build
tf_weapon_pda_engineer_destroy
tf_weapon_syringegun_medic
tf_weapon_medigun
tf_weapon_bonesaw
tf_weapon_sniperrifle
tf_weapon_smg
tf_weapon_club
tf_weapon_revolver
tf_weapon_builder
tf_weapon_knife
tf_weapon_pda_spy
The JCS is offline
Send a message via MSN to The JCS
ANiChowy
New Member
Join Date: Sep 2008
Old 09-17-2008 , 17:58   Re: TF2 Giving weapons to another class
Reply With Quote #42

{edit} I lied.

Last edited by ANiChowy; 09-17-2008 at 18:14.
ANiChowy is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 09-26-2008 , 19:27   Re: TF2 Giving weapons to another class
Reply With Quote #43

I modded bl4nk's code so that it would set ammo properly. It uses a keyvalue file rather than the hardcoded trie. I also added in tf_weapon_flaregun (but tf_weapon_lunchbox doesn't work). The only other thing worth mentioning is that even if you give the player metal (wrench "ammo"), he still can't build using tf_weapon_pda_engineer_build or a "build x" command.

Put the text file in your tf/addons/sourcemod/data directory.
Attached Files
File Type: sp Get Plugin or Get Source (givenameditem.sp - 1183 views - 2.9 KB)
File Type: txt tf2weapondata.txt (2.5 KB, 719 views)
Fyren is offline
skatelouis
Member
Join Date: Aug 2008
Old 09-26-2008 , 22:46   Re: TF2 Giving weapons to another class
Reply With Quote #44

How are u giving the weapon exactly?

I tried to give a rocketlauncer to my scout, the only thing that happen is that I wasn't able to use my primary weapon.
skatelouis is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 09-27-2008 , 05:43   Re: TF2 Giving weapons to another class
Reply With Quote #45

If you mean me, using bl4nk's code. If you only got the files I attached, you need to get the gamedata file from his posts and put it in your gamedata directory.
Fyren is offline
thacursedpie
Member
Join Date: May 2008
Old 09-29-2008 , 14:17   Re: TF2 Giving weapons to another class
Reply With Quote #46

It's not working... Does nothing. Maybe I'm doing something wrong here. I'm using Fyren's plugin, but I don't know what the "gamedata" file is? I searched the entire topic and can only find the actual plugin.
thacursedpie is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 09-29-2008 , 14:23   Re: TF2 Giving weapons to another class
Reply With Quote #47

tf2weapondata.txt for only Fyren's version

3 posts up


givenameditem.games.txt for both Fyren and bl4nk's versions

Post 7
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)

Last edited by Lebson506th; 09-29-2008 at 14:25.
Lebson506th is offline
icky
Member
Join Date: Apr 2008
Old 09-29-2008 , 15:00   Re: TF2 Giving weapons to another class
Reply With Quote #48

I set a new record for healing as a Scout yesterday. Fun stuff.

Is it possible to fix the animation so that my Scout looks like he is actually firing the minigun? It looks like it selects a default position with the gun pointed at the ground whenever you start firing. I know the options are limited, I'm just curious.
icky is offline
thacursedpie
Member
Join Date: May 2008
Old 09-29-2008 , 15:07   Re: TF2 Giving weapons to another class
Reply With Quote #49

Quote:
Originally Posted by Lebson506th View Post
tf2weapondata.txt for only Fyren's version

3 posts up


givenameditem.games.txt for both Fyren and bl4nk's versions

Post 7
Where do I put them? tf folder?
thacursedpie is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 09-29-2008 , 16:09   Re: TF2 Giving weapons to another class
Reply With Quote #50

Quote:
Originally Posted by thacursedpie View Post
Where do I put them? tf folder?
mod/addons/sourcemod/gamedata
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th 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 15:22.


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