Author Topic: Sentry guns 0.90  (Read 10924 times)

0 Members and 1 Guest are viewing this topic.

Offline tk

  • Soldier
  • **
  • Posts: 235
Sentry guns 0.90
« on: February 02, 2009, 03:19:53 pm »
Script Name: Sentry guns 0.90
Original Author(s): tk
Core Version: 2.6.3
Script Description:

Using the script you can plant 5 different types of sentry gun. They shoot more frequent than 1 time per second (normal apponidle)

Types:
1. Gatling gun aka Minigun
 > 24 rounds per second (12 double shoots)
 > 600 ammo
 > inaccurate
 > low damage
 
2. Heavy machine gun
 > 6-8 rounds per second
 > 150 ammo
 > low spread
 > big damage

3. Flak cannon
 > 4 rounds per second (2 x double fire)
 > 120 ammo
 > accurate, low spread
 > explosive bullets, very big damage

4. Shotgun
 > ~2 rounds per second
 > 40 ammo
 > 7 pellets
 > big damage

5. Auto Aiming Missiles launcher
 > 1 missile / 5 seconds
 > 7 missiles

Commands
'/sgun <number 1-5>'  - to place sg
'/delsgun', '/dsg' - to destroy near sg

Settings of all guns may be changed in const but modifing a fireinterval is not recommened.
Code: [Select]
{gatling gun settings}
  gAmmo = 600; //1 shoot uses 2 bullets, use only even value
  gPower = 0.35;
  gSpeed = 30;  //bullet speed;
  gInt = 2;  //NOTE Modifing can cause issues. '1' gives 40 rounds per secound, but may be unstable.
  gAccuracy = 7;
//gStarting = 10; (disabled)

Aiming system works well with speed grater than 20. It finds the angle including curved flight of a bullet.




Shooting Minigun

Code on the second page
« Last Edit: January 17, 2010, 10:31:16 am by tk »

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Sentry guns 0.90
« Reply #1 on: February 02, 2009, 04:19:25 pm »
Haha, nice script :)

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Sentry guns 0.90
« Reply #2 on: February 02, 2009, 05:48:12 pm »
Hey, How can a bot stay without shooting or moving ? :S
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: Sentry guns 0.90
« Reply #3 on: February 02, 2009, 06:37:07 pm »
Hey, How can a bot stay without shooting or moving ? :S
Call him dummy.... everyone knows that :P

nice script tk!

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Sentry guns 0.90
« Reply #4 on: February 02, 2009, 07:23:31 pm »
Call him dummy.... everyone knows that :P
woah. Is there another special name ?
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Sentry guns 0.90
« Reply #5 on: February 02, 2009, 09:05:04 pm »
Wow very nice, just like your auto aiming missile was/is.

Question: Can you assign the sentry guns to teams/players, so they won't attack the creator/creators team?
[A quick look at the script leads me to believe it is not possible, maybe add it as a feature in the next version]
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Sentry guns 0.90
« Reply #6 on: February 03, 2009, 08:03:54 am »
(...)
Question: Can you assign the sentry guns to teams/players, so they won't attack the creator/creators team?
(...)
It is not attack the creator/creators team already.
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: Sentry guns 0.90
« Reply #7 on: February 03, 2009, 01:03:32 pm »
woah. Is there another special name ?
No, only Dummy.

Sentry doesn't attack other sentry, its owner and his teammates. In dm it attacks all players but not its owner.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Sentry guns 0.90
« Reply #8 on: February 08, 2009, 09:49:30 am »
Pausing the game seems not to pause the duration.

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Sentry guns 0.90
« Reply #9 on: February 09, 2009, 11:33:03 am »
What would  be nice is an automatic turret that could somehow be scripted, one that wouldn't need someone standing by it, Sentry style.

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Sentry guns 0.90
« Reply #10 on: February 10, 2009, 02:51:25 am »
What would  be nice is an automatic turret that could somehow be scripted, one that wouldn't need someone standing by it, Sentry style.
The bot is only there as a marker for where the turret is, the turret is automatic, it aims and shoots at the enemies when it can.
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Sentry guns 0.90
« Reply #11 on: February 10, 2009, 06:12:50 am »
What would  be nice is an automatic turret that could somehow be scripted, one that wouldn't need someone standing by it, Sentry style.
The bot is only there as a marker for where the turret is, the turret is automatic, it aims and shoots at the enemies when it can.
(in addition) it needs to be visible somehow, a bot works out well (especially on realistic, you don't see it until it becomes in sight, unlike a stat gun itself)

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Sentry guns 0.90
« Reply #12 on: February 11, 2009, 12:45:11 pm »
The bot should be invincible, so that the turret will just stop working when someone shoots at it.

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: Sentry guns 0.90
« Reply #13 on: February 12, 2009, 08:22:42 am »
Do not use the script in teammatch gamemode because delta team is reserved only for sentrys.

This is a pitty, because the script would be nice to use in climb maps. Did you try making a sentry with a bot from DM-team (team 0)? I guess it does make the bots shoot at each other aswell?
Come join: EliteCTF
Listen to: My Music

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Sentry guns 0.90
« Reply #14 on: February 12, 2009, 09:38:09 am »
Bots are just dummys that are hit by bullets which activate shooting thing, they can't shoot each other.

Offline GSx_Major

  • Major
  • *
  • Posts: 97
Re: Sentry guns 0.90
« Reply #15 on: February 12, 2009, 09:56:11 am »
This is a pitty, because the script would be nice to use in climb maps. Did you try making a sentry with a bot from DM-team (team 0)? I guess it does make the bots shoot at each other aswell?
Climb is ctf...? :P
...and headbutt the sucker through your banana suit!

Offline JFK

  • Camper
  • ***
  • Posts: 255
    • My TraxInSpace Account
Re: Sentry guns 0.90
« Reply #16 on: February 12, 2009, 11:33:09 am »
Climb is ctf...? :P

Yes, but often climb-maps have different spawn-points for all four teams. Some servers allow you to switch to charlie and delta, even though it is ctf.

And if I get it rigth then, the script aims at players,the bots don't aim. Then why would delta team be 'reserved'?
Come join: EliteCTF
Listen to: My Music

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: Sentry guns 0.90
« Reply #17 on: February 12, 2009, 12:21:16 pm »
Currently sentrys don't attack delta team but changing it is not a problem. If it's needed I'll add possiblity to change team for sentry bots in new version.

Offline Xariki

  • Major(1)
  • Posts: 5
Re: Sentry guns 0.90
« Reply #18 on: October 18, 2009, 10:52:31 am »
Weird...

Script compiles great, but If I type /sgun 1 ingame the server crashes O.o?

Offline |_ancer

  • Soldier
  • **
  • Posts: 153
  • again and again.
Re: Sentry guns 0.90
« Reply #19 on: October 19, 2009, 12:58:03 am »
@Xariki
You need to make a bot file called Dummy.