Raised This Month: $ Target: $400
 0% 

Balloon (floating, exploding, balloon animal)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Plugin ID:
640
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 11-19-2008 , 18:09   Balloon (floating, exploding, balloon animal)
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (dhballoon.sp - 870 views - 4.9 KB)
    File Type: smx dhballoon.smx (6.2 KB, 860 views)
    __________________
    "Good grammar is essential, Robin."
    - Batman

    Last edited by L. Duke; 11-19-2008 at 23:13.
    L. Duke is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:39.


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