Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 03:16:19 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: burn skill  (Read 519 times)
[Oddity]TeacherCreature
Sr. Member
****
Posts: 463


View Profile
« on: July 20, 2010, 10:21:02 AM »

est_burn is a command that sets a player on fire litereally
It is my favorite skill!

These are the commands in python for the new est_burn and est_extinguish
Code:
def burn(args):
    """
    Ignites an est player list
   
    @param str args[0] EST player filter
    @param optional float args[1] time Time to burn
    """
    time = 9999 if len(args) == 1 else float(args[1])
    if time == 0:
        time = 9999
    for player in getUseridsFromFilters(args[0]):
        if time:
            es.fire(player, "!self", "IgniteLifetime", time)
        else:
            es.fire(player, "!self", "IgniteLifetime")
           
def extinguish(args):
    """
    Extinguishes players on fire
   
    @param str args[0] EST player filter
    """
    handles = set()
    for player in getPlayersFromFilters(args[0]):
        handles.add(es.getplayerhandle(player))
    for entity in es.createentitylist("entityflame"):
        if es.getindexprop(entity, "CEntityFlame.m_hEntAttached") in handles:
            es.remove(entity)

Can someone create this for me as a strip of sourcepawn code?
It also exists with the core SM as a command "sm_burn" I just dont know where to get that code
This is probably an easy request but blood mage needs it so someone help me out lol
Logged

Necavi
Full Member
***
Posts: 223


View Profile
« Reply #1 on: July 20, 2010, 12:49:43 PM »

All sourcemod commands are open-source and written in sourcepawn, just open the file, I believe it is under 'Fun Commands'.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #2 on: July 20, 2010, 03:33:05 PM »

native IgniteEntity(entity, Float:time, bool:npc=false, Float:size=0.0, bool:level=false);

native TF2_IgnitePlayer(client, target);
Sets a client on fire for 10 seconds.

unreliable, crashy, thats why i didnt bother implementing it
Logged

DarkEnergy
Naris
Jr. Member
**
Posts: 60


View Profile Email
« Reply #3 on: July 20, 2010, 05:20:31 PM »

native IgniteEntity(entity, Float:time, bool:npc=false, Float:size=0.0, bool:level=false);

native TF2_IgnitePlayer(client, target);
Sets a client on fire for 10 seconds.

unreliable, crashy, thats why i didnt bother implementing it

I find both TF2_IgnitePlayer() and IgniteEntity() to both be very reliable and have never had any crashing issues.
That is, as long as you never call TF2_IgnitePlayer() with the same value for client and target, that does crash the server, so don't allow it.

The only issue with IgniteEntity() is that in DoD you get the infinite burning sound, but that can be fixed using a plugin.
Logged
Naris
Jr. Member
**
Posts: 60


View Profile Email
« Reply #4 on: July 20, 2010, 05:28:15 PM »

est_burn is a command that sets a player on fire litereally
It is my favorite skill!

These are the commands in python for the new est_burn and est_extinguish
Code:
           es.fire(player, "!self", "IgniteLifetime", time)

You might want to look at the entity input and output functions in sourcemod.
http://docs.sourcemod.net/api/index.php?fastload=file&id=43&
« Last Edit: July 20, 2010, 05:29:58 PM by Naris » Logged
[Oddity]TeacherCreature
Sr. Member
****
Posts: 463


View Profile
« Reply #5 on: July 21, 2010, 10:02:23 AM »

Thanks ignite entity is working well on my bat rider race
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!