PDA

View Full Version : Hero Idea:Uberman


laptopgun3
11-05-2004, 19:18
500 hp 500 armor low grav and laser ammo for MP5 (like cyclops laser instead of regular bullets)please make this hero!

moose
11-05-2004, 23:46
sure i'll do it...do u mind if the lasers are kinda thin tho?

laptopgun3
11-06-2004, 01:07
sure i dont care as long as it works with amxx oh and dotn make it a one hit killer... make it like a 3 hit killer ;)

moose
11-06-2004, 07:33
ok...so, make it so everyshot lasers fly out, and make it a tiny bit stronger...

laptopgun3
11-06-2004, 10:21
thanx man ur my hero

moose
11-06-2004, 10:24
lol, np

laptopgun3
11-06-2004, 10:30
oh oh oh and i forgot make it have 1000 HP/AP, Low Grav, Random Godmode, Infinite Ammo, Regenerate 10 hp per second PLEASE! 8)

Fatebringer
11-06-2004, 10:42
Are you being serious or just copying me in an attempt to be funny?

laptopgun3
11-06-2004, 11:10
i just copy and pasteed so i wouldnt have to type it all...and i aam serious

moose
11-06-2004, 14:27
ugh... :roll: and i thought this hero wasnt going to be overpowerd...
hey, any1 know what those lasers r called?
there in some servers...its like- colored lines when u shoot?

MTS Steel DrAgoN
11-06-2004, 14:30
ugh... :roll: and i thought this hero wasnt going to be overpowerd...
hey, any1 know what those lasers r called?
there in some servers...its like- colored lines when u shoot?

bullet trails?

Prowler
11-06-2004, 15:09
Tracers is what your looking for, and for the graphics you will be wanting to use


message_begin(MSG_ALL, SVC_TEMPENTITY)
write_byte(0) // TE_BEAMPOINTS
write_coord(0) // start point
write_coord(0)
write_coord(0)
write_coord(0) // end point
write_coord(0)
write_coord(0)
write_short(sprite) // sprite to draw (precached)
write_byte(0) // starting frame
write_byte(0) // frame rate
write_byte(4) // life in 0.1s
write_byte(1) // line width in 0.1u
write_byte(0) // noise in 0.1u
write_byte(200) //red
write_byte(0) //green
write_byte(0) //blue
write_byte(120) // brightness
write_byte(50) // scroll speed
message_end()

I trust you know what to put for co-ords and sprite and what not, i could put all that in but i dont want to make the hero for you :P

in my opinion scrap everything cept the "laser bullets", if you want it to be a hero worth useing. If you want to make it overpowerd go ahead though

moose
11-06-2004, 15:19
heh...

Prowler
11-06-2004, 15:46
Ok, well i was bored so here is some code to get you started.

Basically this will create a hero that will make red bullet tracers for mp5 for players who have Uberman, and does 50% more mp5 damage. use this as a base and change anything you want.

#include <amxmod>
#include <superheromod>

// GLOBAL VARIABLES
new gHeroName[]="Uberman"
new bool:gHasUbermanPower[SH_MAXSLOTS+1]
new lastammo[33]
new spriteindex
//----------------------------------------------------------------------------------------------
public plugin_init()
{
// Plugin Info
register_plugin("SUPERHERO Uberman","1.0","<Your Name>")

// DO NOT EDIT THIS FILE TO CHANGE CVARS, USE THE SHCONFIG.CFG
register_cvar("Uberman_level", "0" )

// FIRE THE EVENT TO CREATE THIS SUPERHERO!
shCreateHero(gHeroName, "Mp5 Laser Bullets", "Mp5 Laser Bullets", false, "Uberman_level" )

// REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS)

// INIT
register_event("Damage", "Uber_damage", "b", "2!0")
register_srvcmd("Uberman_init", "Uberman_init")
register_event("CurWeapon", "make_tracer", "be", "1=1", "3>0")
shRegHeroInit(gHeroName, "Uberman_init")
}
//----------------------------------------------------------------------------------------------
public Uberman_init()
{
new temp[6]

// First Argument is an id
read_argv(1,temp,5)
new id=str_to_num(temp)
read_argv(2,temp,5)
new hasPower=str_to_num(temp) // !0 = has Uberman power

if ( hasPower != 0 )
gHasUbermanPower[id]=true
else
gHasUbermanPower[id]=false
}
//----------------------------------------------------------------------------------------------
public make_tracer(id)
{
new weap = read_data(2) // id of the weapon
new ammo = read_data(3) // ammo left in clip
new pteam[16]

get_user_team(id, pteam, 15)

if ((lastammo[id] > ammo) && (weap == CSW_MP5NAVY)) {

new vec1[3], vec2[3]
get_user_origin(id, vec1, 1) // origin; your camera point.
get_user_origin(id, vec2, 4) // termina; where your bullet goes (4 is cs-only)

vec1[2] -= 6

draw_Tracer_for(0, pteam, vec1, vec2)
}

lastammo[id] = ammo

return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------
public draw_Tracer_for(pl, pteam[], vec1[3], vec2[3])
{
if ( gHasUbermanPower[pl] && is_user_alive(pl) )
{
message_begin(MSG_ONE, SVC_TEMPENTITY, vec1, pl)
write_byte(0) // TE_BEAMPOINTS
write_coord(vec1[0]) // start point
write_coord(vec1[1])
write_coord(vec1[2])
write_coord(vec2[0]) // end point
write_coord(vec2[1])
write_coord(vec2[2])
write_short(spriteindex) // sprite to draw (precached)
write_byte(0) // starting frame
write_byte(0) // frame rate
write_byte(4) // life in 0.1s
write_byte(4) // line width in 0.1u
write_byte(0) // noise in 0.1u
write_byte(200) //red
write_byte(0) //green
write_byte(0) //blue
write_byte(120) // brightness
write_byte(50) // scroll speed
message_end()
}
return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------
public uber_damage(id)
{
if (!shModActive() || !is_user_alive(id)) return PLUGIN_CONTINUE

new damage = read_data(2)
new weapon, bodypart, attacker = get_user_attacker(id, weapon, bodypart)

if ( attacker <= 0 || attacker > SH_MAXSLOTS ) return PLUGIN_CONTINUE

if (weapon == CSW_MP5NAVY){
if ( gHasUbermanPower[attacker] && is_user_alive(id) ) {
// do extra damage
new extraDamage = floatround(damage * 1.5 - damage)
if (extraDamage > 0) shExtraDamage( id, attacker, extraDamage, "Laser Mp5")
}
}
return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------
public plugin_precache()
{
spriteindex = precache_model("sprites/laserbeam.spr");
return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------

laptopgun3
11-06-2004, 15:59
but i want him to shoot lasers instead of bullets

Prowler
11-06-2004, 16:03
yes, well you see here lies the genius of the whole thing

You dont see bullets

You see little red lines that look like lasers

therefore what are actually bullets look like lasers, voila.

Of course if you wanted Cyclops style laser with perfect accuracy, decal burns and set damages for body zone hits then it would require a completely differnt approach. personally this way is just easier and looks the same

in any case, im not forcing anyone to use it, this is mearly a suggestion for code, you can do whatever you want.

laptopgun3
11-06-2004, 16:20
hey moose when is urs gonna be ready? no offence prowler but all you did was add teh bullet tracers... and i wanted more stuff...i cant even see the bullet trasers!

Prowler
11-06-2004, 16:22
it was a base, i had no intention of calling it a final hero

A) it as you said does not have all the stuff you wanted
B) it is not tested properly

This wasnt meant to be used as a hero, it was for moose if he decided he wanted to use it, moose still is making the hero itself.

laptopgun3
11-06-2004, 16:57
oh ok sorry for being lame :lol:

MTS Steel DrAgoN
11-06-2004, 18:01
actually....moosejust wanted to know what the tracers werecalled..he never really asked for a hero...

moose
11-06-2004, 20:40
sure i'll do it...do u mind if the lasers are kinda thin tho?
lol, sry to burst ur bubble...actually tho...i'm not gonna make this...i have a bunch o tests soon...gotta study, i wont say i'm gonna make a hero for someone w/out already having it made first, sry if i held u up dude

laptopgun3
11-06-2004, 22:48
oh thanx for ruining my hopes for this hero

Prowler
11-07-2004, 01:10
MTS yeah i know, i had nothing to do and i figured i would just post some code, if he didnt know what tracers are, then im sure he doesnt know how to make em, was trying to help out.

Why do you want such an overpowerd hero anyway?

laptopgun3
11-07-2004, 01:13
well because all the heros i want that have these features cant be compiled with amxx... like antman or exodeus and there hasnt been a hero with laser ammo...

Prowler
11-07-2004, 01:18
and the 1000 hp/ap thing? or was that a joke?

As i said, i could make it using the tracer method, but A) I wont make an overpowerd hero like the one your asking B) The red tracers doesnt seem to be what your looking for.

so i cant help ya

laptopgun3
11-07-2004, 01:22
hmm can you just make it so that i and everybody else can make the red mp5 lasers?and so that i leaves the burn mark and all i want in the hero...

Prowler
11-07-2004, 01:26
The burn mark would be do-able i think, however with the mp5's fire rate you will have burn decals all over the place, then again i think i can make the decal smaller...

I'll work on it and let you know

Prowler
11-07-2004, 01:57
Alright, try this out for size

#include <amxmod>
#include <superheromod>

// GLOBAL VARIABLES
new gHeroName[]="Uberman"
new bool:gHasUbermanPower[SH_MAXSLOTS+1]
new lastammo[33]
new spriteindex, smoke
//----------------------------------------------------------------------------------------------
public plugin_init()
{
// Plugin Info
register_plugin("SUPERHERO Uberman","1.0","Prowler")

// DO NOT EDIT THIS FILE TO CHANGE CVARS, USE THE SHCONFIG.CFG
register_cvar("Uberman_level", "0" )

// FIRE THE EVENT TO CREATE THIS SUPERHERO!
shCreateHero(gHeroName, "Mp5 Laser Bullets", "Mp5 Laser Bullets", false, "Uberman_level" )

// REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS)

// INIT
register_event("Damage", "uber_damage", "b", "2!0")
register_srvcmd("Uberman_init", "Uberman_init")
register_event("CurWeapon", "make_tracer", "be", "1=1", "3>0")
shRegHeroInit(gHeroName, "Uberman_init")
}
//----------------------------------------------------------------------------------------------
public Uberman_init()
{
new temp[6]

// First Argument is an id
read_argv(1,temp,5)
new id=str_to_num(temp)
read_argv(2,temp,5)
new hasPower=str_to_num(temp) // !0 = has Uberman power

if ( hasPower != 0 )
gHasUbermanPower[id]=true
else
gHasUbermanPower[id]=false
}
//----------------------------------------------------------------------------------------------
public make_tracer(id)
{
if (!gHasUbermanPower[id]) return PLUGIN_CONTINUE
new clip, ammo
new wpnid = get_user_weapon(id, clip, ammo)
new pteam[16]

get_user_team(id, pteam, 15)

if ((lastammo[id] > clip) && (wpnid == CSW_MP5NAVY) ) {

new vec1[3], vec2[3]
get_user_origin(id, vec1, 1) // origin; your camera point.
get_user_origin(id, vec2, 4) // termina; where your bullet goes (4 is cs-only)

vec1[2] -= 6

emit_sound(id,CHAN_ITEM, "weapons/electro5.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
// DELIGHT
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte( 27 )
write_coord( vec1[0] ) //pos
write_coord( vec1[1] )
write_coord( vec1[2] )
write_byte( 10 )
write_byte( 250 ) // r, g, b
write_byte( 0 ) // r, g, b
write_byte( 0 ) // r, g, b
write_byte( 2 ) // life
write_byte( 1 ) // decay
message_end()
//BEAMENTPOINTS
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte (0) //TE_BEAMENTPOINTS 0
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
write_short(spriteindex)
write_byte(1) // framestart
write_byte(5) // framerate
write_byte(2) // life
write_byte(10) // width
write_byte(0) // noise
write_byte(250) // r, g, b
write_byte(0) // r, g, b
write_byte(0) // r, g, b
write_byte(200) // brightness
write_byte(200) // speed
message_end()
//Sparks
message_begin( MSG_PVS, SVC_TEMPENTITY)
write_byte(9)
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
message_end()
//Smoke
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte(5) // 5
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
write_short(smoke)
write_byte(22) // 10
write_byte(10) // 10
message_end()
}
lastammo[id] = clip
return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------
public uber_damage(id)
{
if (!shModActive() || !is_user_alive(id)) return PLUGIN_CONTINUE

new damage = read_data(2)
new weapon, bodypart, attacker = get_user_attacker(id, weapon, bodypart)

if ( attacker <= 0 || attacker > SH_MAXSLOTS ) return PLUGIN_CONTINUE

if (weapon == CSW_MP5NAVY){
if ( gHasUbermanPower[attacker] && is_user_alive(id) ) {
// do extra damage
new extraDamage = floatround(damage * 2.0 - damage)
if (extraDamage > 0) shExtraDamage( id, attacker, extraDamage, "Laser Mp5")
}
}
return PLUGIN_CONTINUE
}
//----------------------------------------------------------------------------------------------
public plugin_precache()
{
smoke = precache_model("sprites/steam1.spr")
spriteindex = precache_model("sprites/laserbeam.spr")
precache_sound("weapons/electro5.wav")
}
//----------------------------------------------------------------------------------------------

Basically i modified the cyclops code to become a tracer instead of a set shot. Its tested and working, it will also give your mp5 double damage

try it out, and let me know what you think.

ArtofDrowning07
11-07-2004, 14:29
oh shit.

use with punisher = badass

very nice.

laptopgun3
11-08-2004, 17:58
wow man thanx i luv this =)

Prowler
11-09-2004, 00:36
No problem, feel free to add whatever you want to it and post it under the Superhero section with your name, just put my name in the sma somewhere as a helping credit thats all i ask for :P

Rippah
11-09-2004, 09:05
why should he put it there...its a rip with laserbullets....

Prowler
11-09-2004, 09:57
How is it a rip?

If you mean its a rip of cyclops thats innacurate, the two heros do completly differnt things, the only thing similiar is graphics. Don't get me wrong, it should be mentioned that you used code from another hero if you used substantial amounts of it (as in cyclops) but the two heros do very very differnt things

Chivas2973
11-09-2004, 10:11
good job on this prowler, I put it in last night and it looks sick with morpheus, navy seal and uberman, I just had to make it a super high level cause when I put it in everyone in server was using it, lag lag lag funny to see 20 people shooting lasers

Rippah
11-09-2004, 11:40
i said...its a rip...WITH LASER BULLETS....

Prowler
11-09-2004, 11:47
Yeah the hero is pretty over powerd, which is why im not releasing him :P Prolly setting it to a slower firing weapon ( a pistol? ) or making a random bullet become a laser instead of every one... i dunnknow

oh and rip = shamless copy of someones hero with a name change and a minor edit (added a model, gave him more hp/ap or whatever)

Rippah
11-09-2004, 12:19
i thought rips was whatever you took from another hero....sorry then

Prowler
11-09-2004, 13:59
Nar, rip is short for "Rip off" Borrowing code from other heroes is very very common, you will find alot of heros share code all the way back to the most first heroes which originally borrowed code from plugins etc etc

laptopgun3
11-09-2004, 18:04
hey prowler if ur gonna remake it then give me the original copy it will come... handy =)

Kebmaster
11-09-2004, 18:08
*OFFTOPIC*


hey!! laptogun.. why dont u give me some hero ideas in the general forum??

i LOVE ur ideas man :)

Chivas2973
11-09-2004, 18:57
hey prowler if ur gonna remake it then give me the original copy it will come... handy =)

he posted the original on the page before, copy the code and paste it into a new text document, then save the text document as "sh_uberman.sma" make sure when you save it, you have the ""

enya-living4ownage
03-31-2005, 14:31
can anyone post it plzz??? i cant figure all this shit out???? and i like uberman.... i want it on my server..

plzz