Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unlimited stun baton script
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#2
RE: Unlimited stun baton script

Creating the stun baton object itself would be fairly simple, granted one knows how to generate the model, put it together in the ModelEditor, and mark it as a tool. Then you could use any or all of those four functions in your map's logic to determine how a player might pick it up, equip/unequip it, or lose it. Even that is fairly trivial, and you can download the developer-created short campaign for a simple example of how to pick up and equip a tool, then using the tool on the proper target.

Actually implementing it into the game would be a different matter. As far as I can tell, there aren't any built-in weapons in the code base, so setting up a system that would handle the using of the weapon, including the collision detection and handling of any damage dealt (as I'm not sure if monsters/enemy characters have health) and anything else involved with putting that together would have to be coded from the ground up.
10-14-2015, 12:21 PM
Find


Messages In This Thread
Unlimited stun baton script - by Radiance - 09-23-2015, 06:20 PM
RE: Unlimited stun baton script - by Abion47 - 10-14-2015, 12:21 PM
RE: Unlimited stun baton script - by Romulator - 10-14-2015, 12:41 PM
RE: Unlimited stun baton script - by TiManGames - 10-14-2015, 03:41 PM
RE: Unlimited stun baton script - by Radiance - 10-14-2015, 04:25 PM
RE: Unlimited stun baton script - by Abion47 - 10-18-2015, 09:42 AM



Users browsing this thread: 1 Guest(s)