Raised This Month: $32 Target: $400
 8% 

[REQ]HL Rocket launcher for CS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 07-17-2009 , 21:39   [REQ]HL Rocket launcher for CS
Reply With Quote #1

If anyone could create the exact copy of HL rocket launcher in CS, that would be greatly appreciated. I tried creating it and also tried modifying from the weaponmod rpg and making it standalone, but couldn't. Also the couple of bazooka plugins in this forum are very old and unoptimized. If it's possible to make it log the kills right in the logs so psychostats could read it, that would be awesome.

If anyone is up to this, maybe this will help you: http://forums.space-headed.net/download/file.php?id=82
The needed natives to make it standalone are found here: http://svn.space-headed.net/viewvc.c...mod/?root=amxx
But weaponmod is currently a dead project and also might be unoptimized.
__________________
anssik is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-18-2009 , 08:03   Re: [REQ]HL Rocket launcher for CS
Reply With Quote #2

Since you want to use it without WM, you want the weapon replacing a specific cs weapon or using a command ?
__________________
Arkshine is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 07-20-2009 , 11:15   Re: [REQ]HL Rocket launcher for CS
Reply With Quote #3

It would replace the knife but only when pressing a special button. Here it is in pseudocode:
PHP Code:
new bool:g_bChoose[33]
new 
bool:g_bGot[33]
new 
bool:g_bInUse[33]

public 
plugin_init()
{
    
register_clcmd("rpg""cmdRPG"0"choose rpg")
    
register_clcmd("buyrpg""cmdbuyRPG"0"buy rpg")
    
registerham("ham_deploy""weapon_knife""checkit")
    
//OR
    
register_event(curweaponcheckit"1=1")
}

public 
cmdbuyRPG(id)
{
    ...
    
g_bGot[id] = true
    client_cmd
(id"bind f ^"rpg^""// or use some...
    //...messagemode thing to ask to which key to bind
}

public 
cmdRPG(id)
{
    if(!
g_bGot[id])
        return
    
g_bChoose[id] = true
    client_cmd
(id"slot3")
}

public 
checkit(id)
{
    if(
WEAPON IS == CSW_KNIFE)
    {
        if(!
g_bChoose[id] && !g_bInUse[id])
            return 
HAM_IGNORED or PLUGIN_CONTINUE

        g_bChoose
[id] = false
        g_bInUse
[id] = true
        
... // replace the model with rpg model and blabla
    
}
    else
    {
        
//user changed to some other weapon
        
g_bInUse[id] = false
    
}
    

EDIT: and answering your question, yes using a command. it could replace some other weapon too but I think the knife is the easiest?
EDIT2: Changed the pseudocode a little
__________________

Last edited by anssik; 07-20-2009 at 18:58. Reason: yes i did
anssik is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 07-22-2009 , 08:23   Re: [REQ]HL Rocket launcher for CS
Reply With Quote #4

Anyone up for this?
__________________
anssik is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-22-2009 , 20:27   Re: [REQ]HL Rocket launcher for CS
Reply With Quote #5

Be patient. ^^
__________________
Arkshine is offline
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-23-2009 , 03:24   Re: [REQ]HL Rocket launcher for CS
Reply With Quote #6

Im using this one, dont know how much its optimized but it works without problem

https://forums.alliedmods.net/showpo...&postcount=165
__________________

Jack86 is offline
Reply



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 20:41.


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