Editing and Customization > General Discussion
GamePlay Scenarios
sylvanusx:
I have been playing around with modifying the Python files for GamePlay scenarios with some success, but I am a little rusty in programming and I don't totally follow what needs to be done. I haven't seen them elsewhere (maybe I'm blind feel free to say lmgtfy).
If anyone likes this idea or cares to help me, great. If not, I'll keep tooling around. I just thought I'd mention it.
I am interested in creating three scenarios, stolen directly from CoD. I'm just not sure about the limitations of scenarios in this game. Sorry for the lazy explanations, but better ones can be found online if I'm unclear.
One in the Chamber: basically, everyone starts with one bullet in a golden ppc and knives. if you get a kill with that bullet or your knife, you get another bullet. if you lose the bullet, you have none until you get another. in the cod version you spectate after 3 lives. I'm not sure if the bullet dynamics work such that you can spontaneously add a single bullet while still alive
Sharpshooter: like gungame, you have a list of guns that cycle, but instead of getting a new gun after a kill, you just get a new gun after 45 seconds based on the server. I'm not sure if you can time the server, and I'm not sure if you can suddenly get a new gun in hand
Infected - one player is randomly infected and when an infected player kills someone that player becomes infected. loadouts are different for players vs infected so usually you give the infected maybe knife or instant slapper death or something, while players usually get some decent gun or some such. survivors get a point every time some other survivor gets infected, so if there are 10 players, the last player gets 9 points total ftw
Thanks folks
S
kraid:
I'm not a programmer, but afaik the first Thing should be possible.
Sharpshooter sounds much similar to gungame for me.
The third one i'm not sure, but i think it was at least suggested as a gamemode once.
But i guess it wasn't done yet.
Pushwall:
Sharpshooter sounds more like Casino Royale, actually.
And if the first one were to go anywhere I'd suggest using a Golden Gun, not a Golden PP7; the latter doesn't kill on a limb shot in GE:S. And maybe calling it "I Only Need One". Can't give any programming feedback though.
sylvanusx:
Thanks for the note about Casino Royale, it looks almost exactly what I was talking about.
Infected is definitely doable too I think, but it's a whole other project I don't want to think about yet. Maybe if I can get OitC to work I'll give it a shot after. It would be key to know the difference between a survivor and an infected, have to use a bonds vs baron type strategy maybe.
I've been poking around trying to make One in the Chamber. It's easy enough to remove weapon/ammo spawns and give players a gun. It seems that all you can give is a single clip not a single bullet, so unless I use Golden Gun (clip = bullet) it ain't gonna be fun like OitC at all. Really I would prefer that it be a DD44 and give one bullet at a time. Anyway now I can start players off with one bullet in their Golden Gun. Next I was going to add killer.GiveAmmo in OnPlayerKilled, but I don't understand GiveAmmo. It takes ( self, ammo_name, amount ), but I tried ( killer, "ammo_goldengun", 1) etc. and had no luck. What would ammo_name be I wonder? the console keeps asking for a char?? Instead I just give an entire new gun using killer.GiveNamedWeapon which works ok to just add a bullet to the Golden Gun. Another problem is picking up bullets from bodies. If I say CanPlayerHaveItem, I can block picking up the guns, but then I can't use GiveNamedWeapon elsewhere.
Remaining questions:
1 How do you add a single bullet
2 How do you use GiveAmmo (what is ammo_name and why does the thing keep saying I need a char)
3 How do you prevent picking up rounds from dead players
Possible solutions
1 ?
2 Use GiveNamedWeapon instead
3 use some kind of flag that the player has that stores a boolean so CanPlayerHaveItem can check before giving a gun. I can't figure out how to store my own flag it's something beyond me in Python although I feel it should be easy
kraid:
--- Quote from: Pushwall on March 20, 2013, 09:34:59 pm ---Sharpshooter sounds more like Casino Royale, actually.
--- End quote ---
I actually meant Casino Royale, not sure why i wrote gungame.
Navigation
[0] Message Index
[#] Next page
Go to full version