AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Balloon (floating, exploding, balloon animal) (https://forums.alliedmods.net/showthread.php?t=80734)

L. Duke 11-19-2008 18:09

Balloon (floating, exploding, balloon animal)
 
2 Attachment(s)
Balloon
Allows players to release a hydrogen filled balloon doggie that floats slowly up in the air. Explodes after 5 seconds (configurable) or when shot. Almost every paramater can be changed by convar. To damage another player, you'll probably have to shoot the balloon or release it in a hallway/room where the ceiling will hold it down near the players.

This should work on DOD:S also, but you'll have to use a different model (the balloon animal is a TF2 standard model).

[IMG]http://img136.**************/img136/1416/cpdustbowl0083cl2.jpg[/IMG]
[IMG]http://img136.**************/img136/cpdustbowl0083cl2.jpg/1/w800.png[/IMG]

Requirements:
Requires the Dukehacks extension version 0.0.1.9 or greater.

Client commands:

Console:
sm_balloon to release a balloon
or
bind "h" "sm_balloon" in console to bind a key (h in this example)

Say:
!balloon in chat to release a balloon

Convars:
PHP Code:

FORMAT:
convar_name default_value
 
description

   sm_balloon_radius  256
   
radius of explosion
   
  sm_balloon_damage  100.0
   
damage dealt on explosion
   
  sm_balloon_hspeedmult  0.98
   
drag multiplier (1.0 to not slow down horizontal speed
   
  sm_balloon_hspeed  300.0
   
initial horizontal speed of balloon
   
  sm_balloon_vspeed  80.0
   
vertical speed of balloon
   
  sm_balloon_life  5.0
   
how long before balloon explodes (in seconds)
   
  
sm_balloon_delay  30.0
   
how often players can release a balloon (in seconds)
   
  
sm_balloon_mdl  "models/player/gibs/gibs_balloon.mdl"
   
balloon model name
   
  sm_balloon_version  0.0.1.9
   
plugin version 

Notes:
This plugin was created as a quick example of how to use the dukehacks extension to modify physics entity movement. If anyone wants to expand on it please feel free to improve/modify/reuse the code.

Download:
Requires the Dukehacks extension version 0.0.1.9 or greater.

bl4nk 11-19-2008 18:13

Re: Balloon (floating, exploding, balloon animal)
 
Sounds like a fun plugin. I wish that image would load so I can see it without having to set it up on a server. :P

L. Duke 11-19-2008 18:14

Re: Balloon (floating, exploding, balloon animal)
 
Try again.

Although it looks much more like a balloon when you watch it float serenely away than it does in a screenshot. :grrr:

DJ Tsunami 11-19-2008 18:20

Re: Balloon (floating, exploding, balloon animal)
 
Lolololol. Nice :wink:

boykevin 11-19-2008 19:10

Re: Balloon (floating, exploding, balloon animal)
 
lol sweet i might try it soon!

FlyingMongoose 11-19-2008 19:27

Re: Balloon (floating, exploding, balloon animal)
 
Approved :)

DontWannaName 11-19-2008 21:39

Re: Balloon (floating, exploding, balloon animal)
 
It doesnt quite make an auto config but thats ok. What command releases a balloon? sm_balloon?

L. Duke 11-19-2008 23:11

Re: Balloon (floating, exploding, balloon animal)
 
Sorry, I forgot to add that to the first post.

Yes, the command is sm_balloon in the console or say !balloon in chat.

DontWannaName 11-20-2008 01:49

Re: Balloon (floating, exploding, balloon animal)
 
When I set the radius and damage to 0 all I see is the blood spurt in the air.

Rebell 11-20-2008 07:25

Re: Balloon (floating, exploding, balloon animal)
 
Hello,

did someone test it on cs:s ?

cya :mrgreen:


All times are GMT -4. The time now is 19:52.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.