they can work yes, you would have to spawn the ent that does all that stuff, my script isnt really set up for that however, which is why ts not happening
Yeah, I'll have to figure out how to set that up! So what I've been working on next is porting Amm-O-Matic into Der Riese, and I was planning on having it give the buyer a max ammo and the bandolier perk after they purchase it. Would I have to script these functions in the zombiemode_weapons gsc? Because this is DEFINITELY incorrect!
You can see that I was previously using the Stamin-Up functions as a placeholder. That one was pretty easy to get working properly, but when it comes to these functions for Amm-O-Matic, I'm pretty lost!
i did reply to this, dont know what happened to that, but i can help with the ammo-matic script, but i need to know: does it affect all players or just the user just active gun or all guns in the effected player has
i did reply to this, dont know what happened to that, but i can help with the ammo-matic script, but i need to know: does it affect all players or just the user just active gun or all guns in the effected player has
Code Snippet
Plaintext
self setClientDvar( "perk_bandolier", 1 );
also i dont think that will do anything
Yeah, the perk_bandolier was just a placeholder. So it would only affect the person buying it, and it would increase reserve ammo for all weapons that the user has. I was also thinking of having it give the buyer max ammo, but what I was trying to do, "self setClientDvar( "give ammo" )", obviously wasn't going to do anything. Thank you so much!
So I tried that, and nothing changed. Shouldn't there be something that mentions something like "if(self HasPerk( "specialty_bulletdamage" ); or something like that? This is what I have for the function BTW:
Code Snippet
Plaintext
ammomatic_init() { flag_wait( "all_players_connected" ); players = get_players(); for ( i = 0; i < players.size; i++ ) self thread give_ammo(); } give_ammo() { primaryWeapons = self GetWeaponsList(); for( x = 0; x < primaryWeapons.size; x++ ) { self GiveMaxAmmo( primaryWeapons[x] ); } }
thats not how its going to work, if you set it up like that with the hasperk thing its gonna do it constantly, making the player have permanent max ammo. ammo-matic isnt a propper perk, its just something to give ammo, shouldnt even need to be in the perks script
Yeah, but I'm not doing anything in Radiant since this is being ported into a mod of an already existing map. Any way to add the bandolier function though, since that's what I'd prefer to have if the max ammo function isn't possible. Thanks again, I really appreciate the help as always!
Yeah, but I'm not doing anything in Radiant since this is being ported into a mod of an already existing map. Any way to add the bandolier function though, since that's what I'd prefer to have if the max ammo function isn't possible. Thanks again, I really appreciate the help as always!
just because its not in radiant doesnt mean its not possible, just needs to be done another way, as for bandolier, theres no actual way of increasing the players ammo, except increasing the clipsize, however that will only work for host, and it'll affect everyone. Double Post Merge: February 06, 2017, 03:26:53 am
thats not how its going to work, if you set it up like that with the hasperk thing its gonna do it constantly, making the player have permanent max ammo. ammo-matic isnt a propper perk, its just something to give ammo, shouldnt even need to be in the perks script
ammomatic() { cost = 10000; self SetHintString( "Press & Hold &&1 For Ammo [Cost: " + cost + "]" ); self setCursorHint( "HINT_NOICON" ); self UseTriggerRequireLookAt(); while(1) { self waittill("trigger", player); player thread give_ammo(); } }
to
Code Snippet
Plaintext
ammomatic() { cost = 10000; self SetHintString( "Press & Hold &&1 For Ammo [Cost: " + cost + "]" ); self setCursorHint( "HINT_NOICON" ); self UseTriggerRequireLookAt(); while(1) { self waittill("trigger", player); if(player.score >= cost && player usebuttonpressed()) { player maps\_zombiemode_score::minus_to_player_score( cost ); player thread give_ammo(); } } }
(i also forgot to check the price, derp ) Double Post Merge: February 06, 2017, 03:28:16 amoh i forgot, this should be in the mapname and you should call
Code Snippet
Plaintext
level thread spawn_ammomatic(origin, angle);
with your perk spawning stuff
Last Edit: February 06, 2017, 03:28:16 am by death_reaper0
Thanks again for the help. I'm really just planning on having Amm-O-Matic as an actual perk, so I'm now thinking of just changing the functions of it entirely. Maybe something like the Blood Bullets perk where a bullet regenerates every 10 seconds? I'm looking at the perk functions for Blood Bullets in your perks gsc in your fortress mod, and it's looking something like this:
Code Snippet
Plaintext
blood() { flag_wait( "all_players_connected" ); players = get_players(); for ( i = 0; i < players.size; i++ ) players[i] blood_bullets(); }
Or would that require more additional scripting? BTW, who was the original creator of Blood Bullets? Because I'd definitely have to give them credit for the functions. Thanks!
you really should not take someones script without permission blood bullets is my creation (although i think zct was the original to have a bullet regen perk, not sure)
Last Edit: February 06, 2017, 07:09:28 am by death_reaper0
Crap, I'm really sorry about that! I'm currently thinking of some other function to give it at the moment, so I think I'm just gonna leave Amm-O-Matic be for the time being.