FAQFAQ    Board RulesBoard Rules    SearchSearch    LotteryLottery    RouletteRoulette    UsergroupsUsergroups
     RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Shop    Log inLog in 
View posts since last visit View your posts View unanswered posts

Weapon ID

 
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Mafia I Help
View previous topic :: View next topic  
Author Message
Mytuss

New Member
New Member


Joined: 01 Mar 2014
Posts: 6

18 Bank Notes
Items

PostPosted: Sun Apr 13, 2014 2:34 pm    Post subject: Weapon ID Reply with quote

Hi, can somebody write me a complete list of Weapon ID? For script human_addweapon . Thanks Smile
Back to top
View user's profile Send private message
Mr Robville

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 11 Sep 2006
Posts: 537
Location: Dutchland
255728 Bank Notes
Items

PostPosted: Sun Apr 13, 2014 2:43 pm    Post subject: Weapon ID Reply with quote

SomebodY's improved ScriptReference includes the weapons ID:

Quote:
0- Empty hands
1- Special Action
2- Knuckleduster
3- Knife
4- Baseball Bat
5- Molotov cocktail
6- Colt Detective Special
7- S&W model 27 Magnum
8- S&W model 10 M&P
9- Colt 1911
10- Thompson 1928
11- Pump shotgun
12- Saw off shotgun
13- US Rifle M1903 Springfield
14- Mosin-Nagant 1891/30
15- Grenade
16- Key
17- Bucket
18- Flashlight
19- Documents
20- Bar
21- Papers
22- Bomb
23- Door keys
24- Safe key
25- Crowbar
26- Plane ticket
27- Package
28- Wooden plank
29- Bottle
30- Small Key
31- Sword
32- Dog's Head
33- Thompson 1928 no sound
34- Pump shotgun no sound


I see it's not uploaded yet. I'll see if I can do it.
_________________


www.Robville.net
Back to top
View user's profile Send private message Visit poster's website
Mytuss

New Member
New Member


Joined: 01 Mar 2014
Posts: 6

18 Bank Notes
Items

PostPosted: Sun Apr 13, 2014 2:45 pm    Post subject: Weapon ID Reply with quote

Thanks Smile
Back to top
View user's profile Send private message
Mr Robville

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 11 Sep 2006
Posts: 537
Location: Dutchland
255728 Bank Notes
Items

PostPosted: Sun Apr 13, 2014 3:37 pm    Post subject: Weapon ID Reply with quote

No problem. Good luck! Thumbs up (left)

I've uploaded the whole script reference file into the downloads section:
http://mafiascene.com/modules.php?name=downloads&cat_id=1&last_id=0
_________________


www.Robville.net
Back to top
View user's profile Send private message Visit poster's website
Mytuss

New Member
New Member


Joined: 01 Mar 2014
Posts: 6

18 Bank Notes
Items

PostPosted: Sun Apr 13, 2014 3:42 pm    Post subject: Weapon ID Reply with quote

Ok. I download it. And when you are here, i want to ask you. Can you tell me a Particle script or something like that? Its script for Fire, steam, and another. Its effect.
Back to top
View user's profile Send private message
Mr Robville

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 11 Sep 2006
Posts: 537
Location: Dutchland
255728 Bank Notes
Items

PostPosted: Sun Apr 13, 2014 3:43 pm    Post subject: Weapon ID Reply with quote

Sorry, but my greatest achievement in scripting was adding a door and a light, so I'm not very experienced with it. Whistling
I think anyone else here will be able to tell how this works.
_________________


www.Robville.net
Back to top
View user's profile Send private message Visit poster's website
Mytuss

New Member
New Member


Joined: 01 Mar 2014
Posts: 6

18 Bank Notes
Items

PostPosted: Sun Apr 13, 2014 3:52 pm    Post subject: Weapon ID Reply with quote

Ok, but thanks for your fast reply
Back to top
View user's profile Send private message
AsaSK

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 24 Feb 2013
Posts: 575
Location: London, England
8240 Bank Notes
Items

PostPosted: Sun Apr 13, 2014 6:43 pm    Post subject: Re: Weapon ID Reply with quote

Mytuss wrote:
Ok. I download it. And when you are here, I want to ask you. Can you tell me a Particle script or something like that? Its script for Fire, steam, and another. Its effect.


I'm not sure I quite understand you, but there is a file in 'Tables' called "EFFECTS.txt" and that has all the particle effects listed. Utilise them with 'emitparticle'.
_________________

The official Mafioso Mod thread
Back to top
View user's profile Send private message
Mytuss

New Member
New Member


Joined: 01 Mar 2014
Posts: 6

18 Bank Notes
Items

PostPosted: Mon Apr 14, 2014 4:33 am    Post subject: Weapon ID Reply with quote

Hi, thanksl. It is "Emitparticle"
Back to top
View user's profile Send private message
maafya

New Member
New Member


Joined: 04 Jul 2014
Posts: 1

2 Bank Notes
Items

PostPosted: Fri Jul 04, 2014 7:11 am    Post subject: Weapon ID Reply with quote

I'm at the office right now, planing to play mafia in this weekend. using mafiacon mod, can i call/spawn weapon by using the list above ("giveweapon Mosin-Nagant 1891/30" for example?

Back in 1st time playing this game, i put the code along with weapon name in .cfg file to spawn it in the middle of the game. Last night i try to guess the weapon name, but only work for obvious one, such "Thompson 1928"

I have search up and down in google, apparently only this page that list weapon name for coding purpose. So I'm adding post, in case other people looking for the same thing. I'll report the result in monday.
Back to top
View user's profile Send private message
lightingft

Junior Member
Junior Member


Joined: 04 Jan 2014
Posts: 85
Location: Lithuania
16 Bank Notes
Items

PostPosted: Sun Jul 13, 2014 12:43 am    Post subject: Weapon ID Reply with quote

You should download Capone. It's a map editor, but includes a whole script refference on scripts, including particle, weapon ids etc. It'll help you getting started, mate. However if you need any help don't hesitate to ask further, but do take a look at capone's refference first Smile I'll try to help in any way I can. Peace!
Back to top
View user's profile Send private message
bugmenot999

New Member
New Member


Joined: 06 Jul 2014
Posts: 1

2 Bank Notes
Items

PostPosted: Thu Jan 28, 2016 4:38 am    Post subject: Weapon ID Reply with quote

Using the command line how giveweapon
Back to top
View user's profile Send private message
ASM.

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 10 Jan 2014
Posts: 98

221 Bank Notes
Items

PostPosted: Mon Feb 01, 2016 11:12 pm    Post subject: Re: Weapon ID Reply with quote

bugmenot999 wrote:
Using the command line how giveweapon

The syntax of the command is
Code:

giveweapon <id> <slot> <weapon> <loaded> <pocket>

To get a fully loaded Thompson for example you'd write
Code:

giveweapon -1 6 "Thompson 1928" 50 200

Note that the MafiaCon supports autocompletion for commands and select arguments like giveweapon's <weapon> parameter. Autocompletion can be invoked by pressing TAB.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Mafia I Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Generation Time: 0.027 | Queries: 19