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

[Request]Briefcase to MvM bomb


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 10-15-2014 , 03:55   [Request]Briefcase to MvM bomb
#1

I just want MvM bomb instead of a standard briefcase
You can do such a thing?
JustSimpleUser is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-15-2014 , 08:58   Re: [Request]Briefcase to MvM bomb
#2

Well, I guess, it's possible, when a entity is created, check the model, if it's the briefcase model, then change it to the MvM bomb model ?

I just have a problem :
1) I don't know the path of the briefcase.
2) I don't know the path to the MvM bomb.

So, if someone is enough kind to give me the path + name of models, then sure I will do this plugin.
__________________
Want to check my plugins ?

Last edited by Arkarr; 10-15-2014 at 09:01.
Arkarr is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-15-2014 , 10:22   Re: [Request]Briefcase to MvM bomb
#3

Quote:
Originally Posted by Arkarr View Post
Well, I guess, it's possible, when a entity is created, check the model, if it's the briefcase model, then change it to the MvM bomb model ?

I just have a problem :
1) I don't know the path of the briefcase.
2) I don't know the path to the MvM bomb.

So, if someone is enough kind to give me the path + name of models, then sure I will do this plugin.
I used to know these...
  • Briefcase: models/flag/briefcase.mdl
  • Bomb: models/props_td/atom_bomb.mdl (at least, I think it is)
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-15-2014 , 12:56   Re: [Request]Briefcase to MvM bomb
#4

@Powerlord
Thanks!
_________________

Plugin under progress.

EDIT:
Plugin ready ! Well, not tested but should work !
PHP Code:
... 
EDIT2:
removed... use Powerlord version, better & safer.
__________________
Want to check my plugins ?

Last edited by Arkarr; 10-16-2014 at 16:31.
Arkarr is offline
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 10-15-2014 , 15:56   Re: [Request]Briefcase to MvM bomb
#5

Wow! Thanks! But.. Can you make command to spawn briefcase(bomb) please? You're just cool!
JustSimpleUser is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-15-2014 , 16:06   Re: [Request]Briefcase to MvM bomb
#6

Quote:
Originally Posted by JustSimpleUser View Post
Wow! Thanks! But.. Can you make command to spawn briefcase(bomb) please? You're just cool!
Well, powerlord help me doing this one, and second, does it really work ?!
Also, wtf ? You want to spawn another briefcase ?! Or bring the actual one to your self ?
__________________
Want to check my plugins ?
Arkarr is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-15-2014 , 16:31   Re: [Request]Briefcase to MvM bomb
#7

Quote:
Originally Posted by Arkarr View Post
Well, powerlord help me doing this one, and second, does it really work ?!
Also, wtf ? You want to spawn another briefcase ?! Or bring the actual one to your self ?
You really should check if it's an item_teamflag before checking the model...

Actually, for that matter, is model even set if you're using the default model for an item_teamflag? Not only that, but StrEqual would be an issues since the model is in the flags directory.

Even if all that is set, the model wouldn't be set when the entity is created... you need a Spawn hook for that.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-15-2014 at 16:36.
Powerlord is offline
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 10-15-2014 , 22:19   Re: [Request]Briefcase to MvM bomb
#8

I have a server with map cp_orange_x3_exe. I'm spawning briefcase with standart console command and i see standart briefcase. Excuse me for my stupidity, I had to write it first..
JustSimpleUser is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-16-2014 , 16:17   Re: [Request]Briefcase to MvM bomb
#9

I haven't tested this, but this uses the actual proper* way to change flag models (via the m_iszModel datamap or flag_model keyvalue).

I should probably set the UI thingy to the bomb as well, but I don't know the path to the UI material for it. If there even is one.

*By "proper", I mean "as documented in item_teamflag's docs in the Valve Developer Wiki".
Attached Files
File Type: sp Get Plugin or Get Source (tf2_flagbomb.sp - 294 views - 2.8 KB)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-17-2014 at 10:00.
Powerlord is offline
JustSimpleUser
Junior Member
Join Date: Oct 2014
Old 10-17-2014 , 03:08   Re: [Request]Briefcase to MvM bomb
#10

Thank you Powerlord!
JustSimpleUser is offline
Closed Thread



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 02:07.


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