Problem with custom weapon

Discuss Certain Aspects of Mapping, Modeling, and Coding.
Post Reply
MaestraFénix
Team Member
Team Member
Posts: 2470
Joined: Mon May 10, 2010 11:50 am
Location: Spain
Contact:

Problem with custom weapon

Post by MaestraFénix »

*Blah Blah, doesn´t matter now*

I just have the exact values to make a custom RPG as a weapon script.

According to Obsidian Conflict Wiki and the README in customweapons folder:
All names should start with custom_ for them to be loaded correctly. If you dont, the weapon will use its default properties.
Also, all custom weapon scripts should be placed in this folder.
In game:
Attempted to create unknown entity type ****! (<-the name of the model)
If you use "custom_***" name but you don´t put anything about "Advanced options":
custom_m202 has no Advanced Weapon Values.
But at least the v_model and w_model works (but not fire the weapon, or not have any effect)

I want use the default options because i don´t know if there are values for melee or proyectile weapons in the "Advanced Options".



There must be a solution. I can´t fail when i´m near to get it :(

(note, the weapons are a "rpg" and a "crowbar").
Last edited by MaestraFénix on Tue Feb 08, 2011 8:22 pm, edited 2 times in total.
Click on my photo to add me into your friends in Steam
Image
Steam photos | Steam videos

Image
MaestraFénix
Team Member
Team Member
Posts: 2470
Joined: Mon May 10, 2010 11:50 am
Location: Spain
Contact:

Re: A stupid little question (Custom weapons or Hammer issue

Post by MaestraFénix »

Nevermind. I found the correct values :3


EDIT:

Look the main post again. The problem that i have is biggest than the older.
Click on my photo to add me into your friends in Steam
Image
Steam photos | Steam videos

Image
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Re: Problem with custom weapon

Post by fug4life »

Try changing the way you name it, and make sure you restart the mod when testing newly added scripts.
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
MaestraFénix
Team Member
Team Member
Posts: 2470
Joined: Mon May 10, 2010 11:50 am
Location: Spain
Contact:

Re: Problem with custom weapon

Post by MaestraFénix »

Same. Changed at least 10 times the name and continue giving the same error, in both cases (custom_ and weapon_)

Error reading weapon data file for: weapon_scripted
custom_gpr has no Advanced Weapon Values.

Code of the custom "rpg":
► Show Spoiler
Also, is curious, because when is custom_***, it does damage (probably bullet type, because doesn´t affect to the Gargantuas), but there´s not rocket.


Is so simple, i don´t want use the advanced options. There is a value to deactivate their use?
Click on my photo to add me into your friends in Steam
Image
Steam photos | Steam videos

Image
MaestraFénix
Team Member
Team Member
Posts: 2470
Joined: Mon May 10, 2010 11:50 am
Location: Spain
Contact:

Re: Problem with custom weapon

Post by MaestraFénix »

I have to considerate this silence that is not possible (yet) custom melee and rpg weapons?


P.D: Damm, the w_model of the grenade is not the grenade that you launch, is item_grenade (so still throwing the normal grenade).
Click on my photo to add me into your friends in Steam
Image
Steam photos | Steam videos

Image
Post Reply