AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [Request]Briefcase to MvM bomb (https://forums.alliedmods.net/showthread.php?t=249948)

JustSimpleUser 10-15-2014 03:55

[Request]Briefcase to MvM bomb
 
I just want MvM bomb instead of a standard briefcase :)
You can do such a thing?

Arkarr 10-15-2014 08:58

Re: [Request]Briefcase to MvM bomb
 
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.

Powerlord 10-15-2014 10:22

Re: [Request]Briefcase to MvM bomb
 
Quote:

Originally Posted by Arkarr (Post 2211321)
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)

Arkarr 10-15-2014 12:56

Re: [Request]Briefcase to MvM bomb
 
@Powerlord
Thanks!
_________________

Plugin under progress.

EDIT:
Plugin ready ! Well, not tested but should work !
PHP Code:

... 

EDIT2:
removed... use Powerlord version, better & safer.

JustSimpleUser 10-15-2014 15:56

Re: [Request]Briefcase to MvM bomb
 
Wow! Thanks! But.. Can you make command to spawn briefcase(bomb) please? You're just cool!

Arkarr 10-15-2014 16:06

Re: [Request]Briefcase to MvM bomb
 
Quote:

Originally Posted by JustSimpleUser (Post 2211490)
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 ?

Powerlord 10-15-2014 16:31

Re: [Request]Briefcase to MvM bomb
 
Quote:

Originally Posted by Arkarr (Post 2211497)
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.

JustSimpleUser 10-15-2014 22:19

Re: [Request]Briefcase to MvM bomb
 
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..

Powerlord 10-16-2014 16:17

Re: [Request]Briefcase to MvM bomb
 
1 Attachment(s)
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".

JustSimpleUser 10-17-2014 03:08

Re: [Request]Briefcase to MvM bomb
 
Thank you Powerlord!


All times are GMT -4. The time now is 03:27.

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