UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Cant buy custom weapon wall ammo???

HOT
broken avatar :(
Created 12 years ago
by iBarnett
0 Members and 1 Guest are viewing this topic.
10,798 views
broken avatar :(
×
broken avatar :(
Location: caCranbrook
Date Registered: 1 June 2013
Last active: 3 years ago
Posts
334
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombies?
Signature
http://www.speedtest.net/result/3950067582.png

WaW - Nazi_zombie_candyland/Nazi_zombie_ascension2.0  90%-95% (Not completed)
WaW - Nazi_zombie_meth/Nazi_zombie_lamanai  100% (complete)
WaW - Nazi_zombie_killswitch 100% (complete)
WaW - Nazi_zombie_pax 100%  (complete + UGX 1.1 edition)
BO3 - zm_epping_woods 80%
×
iBarnett's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
iBarnett's Contact & Social LinksiBarnettiBarnettiBarnettCorey Barnett

***EDIT*** STILL CANT BUY WALL AMMO FOR CUSTOM GUNS!!  fixed model appearing after buying weapon though

So i'm still having issues with not being able to buy wall ammo for my custom guns i added.

I made a short video asking about 2 thing.

http://www.youtube.com/watch?v=bGsyZAHLHOw&feature=youtu.be

Here's my _zombiemode_weapons.gsc and my dlc3_code.gsc

_zombiemode_weapons.gsc
Code Snippet
Plaintext
// Full Auto                                                                                	
add_zombie_weapon( "zombie_mp40", &"ZOMBIE_WEAPON_MP40_1000", 1000, "vox_mp40", 2 );
add_zombie_weapon( "zombie_mp40_upgraded", &"ZOMBIE_WEAPON_MP40_1000", 1000, "vox_mp40", 2 );
add_zombie_weapon( "zombie_ppsh", &"ZOMBIE_WEAPON_PPSH_2000", 2000, "vox_ppsh", 5 );
add_zombie_weapon( "zombie_ppsh_upgraded", &"ZOMBIE_WEAPON_PPSH_2000", 2000, "vox_ppsh", 5 );
add_zombie_weapon( "zombie_stg44", &"ZOMBIE_WEAPON_STG44_1200", 1200, "vox_mg", 9 );
add_zombie_weapon( "zombie_stg44_upgraded", &"ZOMBIE_WEAPON_STG44_1200", 1200, "vox_mg", 9 );
add_zombie_weapon( "zombie_thompson", &"ZOMBIE_WEAPON_THOMPSON_1200", 1200, "", 0 );
add_zombie_weapon( "zombie_thompson_upgraded", &"ZOMBIE_WEAPON_THOMPSON_1200", 1200, "", 0 );
add_zombie_weapon( "zombie_type100_smg", &"ZOMBIE_WEAPON_TYPE100_1000", 1000, "", 0 );
add_zombie_weapon( "zombie_type100_smg_upgraded", &"ZOMBIE_WEAPON_TYPE100_1000", 1000, "", 0 );
add_zombie_weapon( "aug", &"AUG_1000", 1000, "", 0 );
add_zombie_weapon( "aug_upgraded", &"AUG_1000", 1000, "", 0 );
add_zombie_weapon( "commando", &"COMMANDO_1000", 1000, "", 0 );
add_zombie_weapon( "commando_upgraded", &"COMMANDO_1000", 1000, "", 0 );
add_zombie_weapon( "galil", &"GALIL_1000", 1000, "", 0 );
add_zombie_weapon( "galil_upgraded", &"GALIL_1000", 1000, "", 0 );
add_zombie_weapon( "ak74u", &"AK74U_1000", 1000, "", 0 );
add_zombie_weapon( "ak74u_upgraded", &"AK74U_1000", 1000, "", 0 );
add_zombie_weapon( "enfield", &"ENFIELD_1000", 1000, "", 0 );
add_zombie_weapon( "enfield_upgraded", &"ENFIELD_1000", 1000, "", 0 );
add_zombie_weapon( "famas", &"FAMAS_1000", 1000, "", 0 );
add_zombie_weapon( "famas_upgraded", &"FAMAS_1000", 1000, "", 0 );
add_zombie_weapon( "mp5k", &"MP5K_1000", 1000, "", 0 );
add_zombie_weapon( "mp5k_upgraded", &"MP5K_1000", 1000, "", 0 );
add_zombie_weapon( "mpl", &"MPL_1000", 1000, "", 0 );
add_zombie_weapon( "mpl_upgraded", &"MPL_1000", 1000, "", 0 );
add_zombie_weapon( "uzi", &"UZI_1000", 1000, "", 0 );
add_zombie_weapon( "uzi_upgraded", &"UZI_1000", 1000, "", 0 );
add_zombie_weapon( "pm63", &"PM63_1000", 1000, "", 0 );
add_zombie_weapon( "pm63_upgraded", &"PM63_1000", 1000, "", 0 );

dlc3_code.gsc
Code Snippet
Plaintext
// Full Auto
include_weapon( "aug" );
include_weapon( "aug_upgraded", false );
include_weapon( "commando" );
include_weapon( "commando_upgraded", false );
include_weapon( "galil" );
include_weapon( "galil_upgraded", false );
include_weapon( "ak74u" );
include_weapon( "ak74u_upgraded", false );
include_weapon( "enfield" );
include_weapon( "enfield_upgraded", false );
include_weapon( "famas" );
include_weapon( "famas_upgraded", false );
include_weapon( "mp5k" );
include_weapon( "mp5k_upgraded", false );
include_weapon( "mpl" );
include_weapon( "mpl_upgraded", false );
include_weapon( "uzi" );
include_weapon( "uzi_upgraded", false );
include_weapon( "pm63" );
include_weapon( "pm63_upgraded", false );
include_weapon( "zombie_stg44" );
include_weapon( "zombie_stg44_upgraded", false );
include_weapon( "zombie_thompson" );
include_weapon( "zombie_thompson_upgraded", false );
include_weapon( "zombie_mp40" );
include_weapon( "zombie_mp40_upgraded", false );
include_weapon( "zombie_type100_smg" );
include_weapon( "zombie_type100_smg_upgraded", false );

For the radiant side of things all I have is a trigger_use with these kvp's  - targetname  \  weapon_upgrade
                                                                                                                   - zombie_weapon_upgrade  \  aug
Last Edit: August 19, 2014, 06:42:23 pm by iBarnett
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 8 January 2014
Last active: 8 years ago
Posts
840
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Embers are the new lens flares
×
chromastone10's Groups
Mapper Has released one or more maps to the UGX-Mods community.
chromastone10's Contact & Social Linkschromastone1chromastone10chromastone10
heres my theory, do you have upgraded versions of the weapons in game? if no that could be the issue and if yes maybe your upgraded versions have more ammo then the normal weapon but both the normal and upgraded version are sharing the same ammo so you can buy more ammo until its lower on ammo, again just my theory
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 2 years ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Also not sure if this will cause it but in your weapon file, is your start ammo bigger than your max ammo?
broken avatar :(
×
broken avatar :(
Location: caCranbrook
Date Registered: 1 June 2013
Last active: 3 years ago
Posts
334
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombies?
×
iBarnett's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
iBarnett's Contact & Social LinksiBarnettiBarnettiBarnettCorey Barnett
heres my theory, do you have upgraded versions of the weapons in game? if no that could be the issue and if yes maybe your upgraded versions have more ammo then the normal weapon but both the normal and upgraded version are sharing the same ammo so you can buy more ammo until its lower on ammo, again just my theory
Any theory better then what im goin on but what do you mean by upgraded version in game??

I'm guessing i dont since im not sure what your talking about. where or how r they added?

Double Post Merge: August 19, 2014, 05:45:56 am
Also not sure if this will cause it but in your weapon file, is your start ammo bigger than your max ammo?
I have'nt changed anything to do with ammo yet. should have I by now??
Last Edit: August 19, 2014, 05:45:56 am by iBarnett
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 2 years ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Any theory better then what im goin on but what do you mean by upgraded version in game??

I'm guessing i dont since im not sure what your talking about. where or how r they added?

Double Post Merge: August 19, 2014, 05:45:56 am
I have'nt changed anything to do with ammo yet. should have I by now??

Well I recommend the start ammo be the same as the max ammo.
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 28 July 2013
Last active: 6 years ago
Posts
702
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
Personal Quote
Pizza that is all.
Signature
There's no better feeling in the world than a warm pizza box on your lap.
×
SoulTaker's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
SoulTaker's Contact & Social Links
For the gun model to appear after you bought it make the chalk a script brushmodel and get the right click script model then choose the model for the gun. After that click on the gun then the script brushmodel and click "W'. After that make your trigger to buy the gun and after you're done click the trigger and click the script model (gun model) and click "W" once again that should make it appear after you bought it that's the way I've done it.
As for your other problem are you sure you didn't put any typos in the dlc3_code,_zombiemode_weapons, and the mod.csv? I'm guessing you either did a typo or forgot to.
Last Edit: August 19, 2014, 05:52:31 am by ValenciaRicardo1
broken avatar :(
×
broken avatar :(
Location: caCranbrook
Date Registered: 1 June 2013
Last active: 3 years ago
Posts
334
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombies?
×
iBarnett's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
iBarnett's Contact & Social LinksiBarnettiBarnettiBarnettCorey Barnett
For the gun model to appear after you bought it make the chalk a script model and get the right click script model then choose the model for the gun. After that click on the gun then the script brushmodel and click "W'. After that make your trigger to buy the gun and after you're done click the trigger and click the script model (gun model) and click "W" once again that should make it appear after you bought it that's the way I've done it.
Thanks will give this a go
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 28 July 2013
Last active: 6 years ago
Posts
702
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
Personal Quote
Pizza that is all.
×
SoulTaker's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
SoulTaker's Contact & Social Links
Thanks will give this a go
Make the chalk a script brushmodel I put script model by mistake !
Like I also said you most likely did a typo with your gun name. Check dlc3_code,zombiemode_weapons,mod.csv you have to have had made a mistake somewhere.

In Radiant it should look like this if you did it right.

Last Edit: August 19, 2014, 05:56:26 am by ValenciaRicardo1
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Just copy prefab of some gun to desktop, rename it and modify KVPs, model and texture and it should work, I got it to work in my map
broken avatar :(
×
broken avatar :(
Location: caCranbrook
Date Registered: 1 June 2013
Last active: 3 years ago
Posts
334
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombies?
×
iBarnett's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
iBarnett's Contact & Social LinksiBarnettiBarnettiBarnettCorey Barnett
Make the chalk a script brushmodel I put script model by mistake !
Like I also said you most likely did a typo with your gun name. Check dlc3_code,zombiemode_weapons,mod.csv you have to have had made a mistake somewhere.

In Radiant it should look like this if you did it right.

(Image removed from quote.)
ok so I got the model to load it game. Thanks dude!
Any ideas how to fix it so I can buy wall ammo now?  Hope so!
broken avatar :(
×
broken avatar :(
Location: usCalifornia
Date Registered: 28 July 2013
Last active: 6 years ago
Posts
702
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
Personal Quote
Pizza that is all.
×
SoulTaker's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
SoulTaker's Contact & Social Links
ok so I got the model to load it game. Thanks dude!
Any ideas how to fix it so I can buy wall ammo now?  Hope so!
No problem glad to help and as I said before did you check that you included the upgraded weapon file in _zombiemode_weapons,dlc3_code, and your mod.csv? Also make sure you didn't do any potential typos.
For example can you show us a picture of your _zombiemode_weapons and dlc3 code as well as mod.csv? If you want PM and send me the files and I'll check it out for you.
broken avatar :(
×
broken avatar :(
Location: caCranbrook
Date Registered: 1 June 2013
Last active: 3 years ago
Posts
334
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombies?
×
iBarnett's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
iBarnett's Contact & Social LinksiBarnettiBarnettiBarnettCorey Barnett
No problem glad to help and as I said before did you check that you included the upgraded weapon file in _zombiemode_weapons,dlc3_code, and your mod.csv? Also make sure you didn't do any potential typos.
For example can you show us a picture of your _zombiemode_weapons and dlc3 code as well as mod.csv? If you want PM and send me the files and I'll check it out for you.
So i put my _zombiemode_weapons.gsc and my dlc3_code.gsc in my orig post but there just sections of it. If you want me to send you the full files i can.
And heres the bottom half of my .csv where i added in my shit for the weapons
Code Snippet
Plaintext
// Updated Menu File For Pause Screen Map
menufile,ui/objective_info.menu
stringtable,maps/mapsTable.csv
weapon,sp\aug
sound,aug,,all_sp
material,bo1_mtl_t5_weapon_aug_plastic
material,bo1_mtl_t5_weapon_aug
xanim,viewmodel_aug_grip_ads_down
xanim,viewmodel_aug_grip_ads_fire
xanim,viewmodel_aug_grip_ads_up
xanim,viewmodel_aug_grip_fire
xanim,viewmodel_aug_grip_first_raise
xanim,viewmodel_aug_grip_idle
xanim,viewmodel_aug_grip_idle_loop
xanim,viewmodel_aug_grip_last_shot
xanim,viewmodel_aug_grip_pullout
xanim,viewmodel_aug_grip_pullout_quick
xanim,viewmodel_aug_grip_putaway
xanim,viewmodel_aug_grip_putaway_quick
xanim,viewmodel_aug_grip_reload
xanim,viewmodel_aug_grip_reload_empty
xanim,viewmodel_aug_grip_sprint_in
xanim,viewmodel_aug_grip_sprint_loop
xanim,viewmodel_aug_grip_sprint_out
sound,commando,,all_sp
weapon,sp\commando
xmodel,bo1_galil_non_upgraded_world
weapon,sp\galil
sound,galil,,all_sp
xanim,viewmodel_galil_idle
xanim,viewmodel_galil_idle_loop
xanim,viewmodel_galil_ads_down
xanim,viewmodel_galil_ads_fire
xanim,viewmodel_galil_ads_up
xanim,viewmodel_galil_fire
xanim,viewmodel_galil_first_raise
xanim,viewmodel_galil_pullout_quick
xanim,viewmodel_galil_putaway
xanim,viewmodel_galil_putaway_quick
xanim,viewmodel_galil_pullout
xanim,viewmodel_galil_reload
xanim,viewmodel_galil_reload_empty
xanim,viewmodel_galil_sprint_in
xanim,viewmodel_galil_sprint_loop
xanim,viewmodel_galil_sprint_out
sound,ak74u,,all_sp
weapon,sp\ak74u
sound,enfield,,all_sp
weapon,sp\enfield
sound,famas,,all_sp
weapon,sp\famas
sound,cz75,,all_sp
weapon,sp\cz75
sound,fnfal,,all_sp
weapon,sp\fal
sound,mp5,,all_sp
weapon,sp\mp5
xanim,viewmodel_mp5_grip_ads_down
xanim,viewmodel_mp5_grip_ads_fire
xanim,viewmodel_mp5_grip_ads_up
xanim,viewmodel_mp5_grip_fire
xanim,viewmodel_mp5_grip_first_raise
xanim,viewmodel_mp5_grip_idle
xanim,viewmodel_mp5_grip_last_shot
xanim,viewmodel_mp5_grip_pullout
xanim,viewmodel_mp5_grip_pullout_quick
xanim,viewmodel_mp5_grip_putaway
xanim,viewmodel_mp5_grip_putaway_quick
xanim,viewmodel_mp5_grip_reload
xanim,viewmodel_mp5_sprint_out
xanim,viewmodel_mp5_sprint_loop
xanim,viewmodel_mp5_sprint_in
xanim,viewmodel_mp5_grip_reload_empty
sound,mpl,,all_sp
weapon,sp\mpl
sound,uzi,,all_sp
weapon,sp\uzi
sound,pm63,,all_sp
weapon,sp\pm63
sound,rpk,,all_sp
weapon,sp\rpk
sound,hk21,,all_sp
weapon,sp\hk21
sound,thundergun,,all_mp
weapon,sp\thundergun

Double Post Merge: August 19, 2014, 03:46:48 pm
Make the chalk a script brushmodel I put script model by mistake !
Like I also said you most likely did a typo with your gun name. Check dlc3_code,zombiemode_weapons,mod.csv you have to have had made a mistake somewhere.

In Radiant it should look like this if you did it right.

(Image removed from quote.)
So this was best answer!! for how to add models to a weapon chalk  (just  "UN-best" the answered  so people will hopefully answer the wall ammo question

    ( STILL BEST ANSWER FOR ADDING MODELS TO WEAPON CHALKS!!!!!!!!!!!!!)

Double Post Merge: August 20, 2014, 03:39:28 pm
Anyone?? Still can't seem to be able to buy wall ammo for my BO wall guns!!

Please someone it's the only thing holding my map back. And I'm not about to release it with broken BO weapons or without them at all.

PLEASE HELP!!!
Last Edit: August 20, 2014, 03:39:28 pm by iBarnett
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
The weapon popout is handled by GSC, I modded it in the BO1 titanfall weapons because it did the exact same thing, it doesn't show.
Gimme a minute to find the code.

Okay so how the model code is handled is by the target name as seen in weapon_spawn_think(). This is my way of handling it:
Code Snippet
Plaintext
if( !player_has_weapon )
{
// else make the weapon show and give it
if( player.score >= cost )
{
if( self.first_time_triggered == false )
{
model = getent( self.target, "targetname" );
// model show();
model thread weapon_show( player );

switch( self.zombie_weapon_upgrade)
{
case "rottweil72_zm":
model setModel("bo2_weapon_blundergat");
break;

case "m16_zm":
model setModel("t6_wpn_swat556_weapon");
break;

case "mp5k_zm":
model setModel("bo2_t6_wpn_smg_mp7_world");
break;
}
self.first_time_triggered = true;

if(!is_grenade)
{
self weapon_set_first_time_hint( cost, ammo_cost );
}
}

player maps\_zombiemode_score::minus_to_player_score( cost );

bbPrint( "zombie_uses: playername %s playerscore %d teamscore %d round %d cost %d name %s x %f y %f z %f type weapon",
player.playername, player.score, level.team_pool[ player.team_num ].score, level.round_number, cost, self.zombie_weapon_upgrade, self.origin );

if ( is_lethal_grenade( self.zombie_weapon_upgrade ) )
{
player takeweapon( player get_player_lethal_grenade() );
player set_player_lethal_grenade( self.zombie_weapon_upgrade );
}

player weapon_give( self.zombie_weapon_upgrade );

player check_collector_achievement( self.zombie_weapon_upgrade );
}
else
{
play_sound_on_ent( "no_purchase" );
player maps\_zombiemode_audio::create_and_play_dialog( "general", "no_money", undefined, 1 );

}
}
else
{
// MM - need to check and see if the player has an upgraded weapon.  If so, the ammo cost is much higher
if(IsDefined(self.hacked) && self.hacked) // hacked wall buys have their costs reversed...
{
if ( !player has_upgrade( self.zombie_weapon_upgrade ) )
{
ammo_cost = 4500;
}
else
{
ammo_cost = get_ammo_cost( self.zombie_weapon_upgrade );
}
}
else
{
if ( player has_upgrade( self.zombie_weapon_upgrade ) )
{
ammo_cost = 4500;
}
else
{
ammo_cost = get_ammo_cost( self.zombie_weapon_upgrade );
}
}
// if the player does have this then give him ammo.
if( player.score >= ammo_cost )
{
if( self.first_time_triggered == false )
{
model = getent( self.target, "targetname" );
// model show();
model thread weapon_show( player );

switch( self.zombie_weapon_upgrade)
{
case "rottweil72_zm":
model setModel("bo2_weapon_blundergat");
break;

case "m16_zm":
model setModel("t6_wpn_swat556_weapon");
break;

case "mp5k_zm":
model setModel("bo2_t6_wpn_smg_mp7_world");
break;
}
self.first_time_triggered = true;
if(!is_grenade)
{
self weapon_set_first_time_hint( cost, get_ammo_cost( self.zombie_weapon_upgrade ) );
}
}
Basically what I did was the 2 instances where it would spawn the model I replaced the model with the proper weapon model I could have just used some function i.e. getWeaponModel(string) but didn't realize it at the time hope that solves that problem. I'll check out the ammo shit now.

Ammo crap is handled by ammo_give() in _zombiemode_weapons I would place some iprintln's to see what's wrong in there even though there should be no problem. Also check weapon_spawn_think() for the ammo_give calls place some iprintln's around there too, make sure to print weapon and self.target to see what it's actually trying to give the ammo to.
Last Edit: August 20, 2014, 05:15:09 pm by DidUknowiPwn
broken avatar :(
×
broken avatar :(
Location: caCranbrook
Date Registered: 1 June 2013
Last active: 3 years ago
Posts
334
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombies?
×
iBarnett's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
iBarnett's Contact & Social LinksiBarnettiBarnettiBarnettCorey Barnett
The weapon popout is handled by GSC, I modded it in the BO1 titanfall weapons because it did the exact same thing, it doesn't show.
Gimme a minute to find the code.
Thanks man

Double Post Merge: August 20, 2014, 06:42:05 pm
The weapon popout is handled by GSC, I modded it in the BO1 titanfall weapons because it did the exact same thing, it doesn't show.
Gimme a minute to find the code.

Okay so how the model code is handled is by the target name as seen in weapon_spawn_think(). This is my way of handling it:
Code Snippet
Plaintext
if( !player_has_weapon )
{
// else make the weapon show and give it
if( player.score >= cost )
{
if( self.first_time_triggered == false )
{
model = getent( self.target, "targetname" );
// model show();
model thread weapon_show( player );

switch( self.zombie_weapon_upgrade)
{
case "rottweil72_zm":
model setModel("bo2_weapon_blundergat");
break;

case "m16_zm":
model setModel("t6_wpn_swat556_weapon");
break;

case "mp5k_zm":
model setModel("bo2_t6_wpn_smg_mp7_world");
break;
}
self.first_time_triggered = true;

if(!is_grenade)
{
self weapon_set_first_time_hint( cost, ammo_cost );
}
}

player maps\_zombiemode_score::minus_to_player_score( cost );

bbPrint( "zombie_uses: playername %s playerscore %d teamscore %d round %d cost %d name %s x %f y %f z %f type weapon",
player.playername, player.score, level.team_pool[ player.team_num ].score, level.round_number, cost, self.zombie_weapon_upgrade, self.origin );

if ( is_lethal_grenade( self.zombie_weapon_upgrade ) )
{
player takeweapon( player get_player_lethal_grenade() );
player set_player_lethal_grenade( self.zombie_weapon_upgrade );
}

player weapon_give( self.zombie_weapon_upgrade );

player check_collector_achievement( self.zombie_weapon_upgrade );
}
else
{
play_sound_on_ent( "no_purchase" );
player maps\_zombiemode_audio::create_and_play_dialog( "general", "no_money", undefined, 1 );

}
}
else
{
// MM - need to check and see if the player has an upgraded weapon.  If so, the ammo cost is much higher
if(IsDefined(self.hacked) && self.hacked) // hacked wall buys have their costs reversed...
{
if ( !player has_upgrade( self.zombie_weapon_upgrade ) )
{
ammo_cost = 4500;
}
else
{
ammo_cost = get_ammo_cost( self.zombie_weapon_upgrade );
}
}
else
{
if ( player has_upgrade( self.zombie_weapon_upgrade ) )
{
ammo_cost = 4500;
}
else
{
ammo_cost = get_ammo_cost( self.zombie_weapon_upgrade );
}
}
// if the player does have this then give him ammo.
if( player.score >= ammo_cost )
{
if( self.first_time_triggered == false )
{
model = getent( self.target, "targetname" );
// model show();
model thread weapon_show( player );

switch( self.zombie_weapon_upgrade)
{
case "rottweil72_zm":
model setModel("bo2_weapon_blundergat");
break;

case "m16_zm":
model setModel("t6_wpn_swat556_weapon");
break;

case "mp5k_zm":
model setModel("bo2_t6_wpn_smg_mp7_world");
break;
}
self.first_time_triggered = true;
if(!is_grenade)
{
self weapon_set_first_time_hint( cost, get_ammo_cost( self.zombie_weapon_upgrade ) );
}
}
Basically what I did was the 2 instances where it would spawn the model I replaced the model with the proper weapon model I could have just used some function i.e. getWeaponModel(string) but didn't realize it at the time hope that solves that problem. I'll check out the ammo shit now.

Ammo crap is handled by ammo_give() in _zombiemode_weapons I would place some iprintln's to see what's wrong in there even though there should be no problem. Also check weapon_spawn_think() for the ammo_give calls place some iprintln's around there too, make sure to print weapon and self.target to see what it's actually trying to give the ammo to.
So i'm a super noob when it comes to scripting. i can find where ammo_give() and wepon_spawn_think() is located but I have no idea what a iprintln's are?? and what do you mean by print weapon and self.target
Sorry im lost
Last Edit: August 20, 2014, 06:42:05 pm by iBarnett
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 2 years ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Can you please put your weapon file here, to make sure things are correct?

 
Loading ...