Hello, so I'm relatively new to scripting (I tried it once a while ago but I didn't know C# at the time so I didn't get very far) and I spent a while yesterday coming up with a script that allows players to call in an airstrike. In it's current form you press walk to throw out a beacon (crumpled paper) and after about five seconds the beacon activates and spawns a 5 bazooka rockets high above the beacon that rocket towards the ground(I have a variation that spawns broken spotlights too if you want a more predictable result).
The thing is, I currently don't really know how to implement this into a game in a way that might make people actually want to play it. At the moment any player can just hold down the walk key to spew out a stream of beacons, resulting in the Superfighters equivalent to an orbital nuclear strike.
I'm currently considering making it so that a button will periodically spawn somewhere on the map at a rate of about slightly less than the bazooka and if you push it you gain one airstrike "ammo" allowing you to call in one airstrike at any time after that. The thing is, I have no idea if this is even a good idea OR how to code this, as I'm really new to the script API. If anyone has advice on potential design tweaks or implementation I'd love to hear it.
Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Airstrike script design.
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
-
- Fighter
- Posts: 28
- Joined: Wed Nov 02, 2016 12:59 am
- Started SFD: Sometime in Pre-Alpha
- Gender:
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
If you provide me a flow chart or something I could use for writing the code logic I'll happy to help you, because if I have to write from scratch I really have no time to think how things have to work.ClockworkDice wrote: ↑Sun Jul 23, 2017 4:55 pmHello, so I'm relatively new to scripting (I tried it once a while ago but I didn't know C# at the time so I didn't get very far) and I spent a while yesterday coming up with a script that allows players to call in an airstrike. In it's current form you press walk to throw out a beacon (crumpled paper) and after about five seconds the beacon activates and spawns a 5 bazooka rockets high above the beacon that rocket towards the ground(I have a variation that spawns broken spotlights too if you want a more predictable result).
The thing is, I currently don't really know how to implement this into a game in a way that might make people actually want to play it. At the moment any player can just hold down the walk key to spew out a stream of beacons, resulting in the Superfighters equivalent to an orbital nuclear strike.
I'm currently considering making it so that a button will periodically spawn somewhere on the map at a rate of about slightly less than the bazooka and if you push it you gain one airstrike "ammo" allowing you to call in one airstrike at any time after that. The thing is, I have no idea if this is even a good idea OR how to code this, as I'm really new to the script API. If anyone has advice on potential design tweaks or implementation I'd love to hear it.
0 x
-
- Fighter
- Posts: 56
- Joined: Tue Jun 13, 2017 5:29 am
- Title: Just A Color
- SFD Account: Shinobi(variants)
- SFD Alias: Shinobi
- Started SFD: Around Pre-A 1.7.3
- Gender:
Ill Help.Just Give Me the Script,and i tell you how to improve on discord if u have one or tell me a way to message you.Hell,ill even make you a map if you'd like,just give me some credit if u post it
0 x
*Swish*Cling*Bash*Out Of The Shadows Mudafucka!!!!*Pitter Patter
Noonja
Noonja
-
- Fighter
- Posts: 28
- Joined: Wed Nov 02, 2016 12:59 am
- Started SFD: Sometime in Pre-Alpha
- Gender:
Should I just post the script here? That way anyone who wants to give advice can see it and anyone who actively wants to help can copy paste into a .txt file.
0 x
-
- Fighter
- Posts: 56
- Joined: Tue Jun 13, 2017 5:29 am
- Title: Just A Color
- SFD Account: Shinobi(variants)
- SFD Alias: Shinobi
- Started SFD: Around Pre-A 1.7.3
- Gender:
Sure
Unless you dont wont people using in their server while its in dev stage,i say go for it
Unless you dont wont people using in their server while its in dev stage,i say go for it
0 x
*Swish*Cling*Bash*Out Of The Shadows Mudafucka!!!!*Pitter Patter
Noonja
Noonja