[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Support Class (Giving Ammo to teammates)

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Fri May 03, 2024 3:07 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Jun 09, 2008 6:53 pm 
Offline

Joined: Mon Jun 09, 2008 6:35 pm
Posts: 24
hey guys!
I need so,me help, because I thought about crating a support class for BF1942 who´s able to give ammo to allied soldiers. (Like the medic gives health to soldiers nearby)
I want to use the medic pack with another texture for the "mobile ammobox". I know how to create a new texture and i know how to copy the whole "medicpack files" but i dont know how to code the "mobile ammobox".

IMPORTANT: The "mobile ammobox" should be a handfirearm like the medicpack and not a static object like the normal ammobox.

Thanks in advance!
- 100fps


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Jun 09, 2008 9:16 pm 
Offline

Joined: Wed Oct 11, 2006 4:19 pm
Posts: 211
Location: Northern California
Just have the engineer hold out his mortar/landmine/healthpack apparatus and reammo his teammates...and heal them.
SSM!

We have knive maps that heal when out.

We have knive maps that have death bubbles when out.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Jun 09, 2008 10:01 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
^ Not a bad idea like zoomer said...

Also, is this for DC or 1942?!? It sounds like 42 but im not sure.

The easiest way would simply be to create maybe two ammo "packs"...one for allies, one for axis, and make up a supplydepot (so you don't give an enemy ammo!)

..well, now that I think about it..if you kill an enemy and pick up his kit...you won't reload yourself/teammates. lol. :?

Just another idea..


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Jun 09, 2008 10:08 pm 
Offline

Joined: Tue Apr 29, 2008 12:04 pm
Posts: 135
i would personaly stick to sticking ammo boxs to the hemets much easier

_________________
My BF1942 Server's Homepage
BF1942 Servers Name Modded Omaha
BF1942 Servers IP 212.187.208.16


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Jun 09, 2008 10:11 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
no!!! adding static objects FTL! Just add supplydepots. ftw :razz:


Top
 Profile Send private message E-mail  
 
PostPosted: Mon Jun 09, 2008 10:19 pm 
Offline

Joined: Tue Apr 29, 2008 12:04 pm
Posts: 135
but its fun putiing on a patch and shooting at people with ammo box heads :o

_________________
My BF1942 Server's Homepage
BF1942 Servers Name Modded Omaha
BF1942 Servers IP 212.187.208.16


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Jun 10, 2008 11:09 am 
Offline

Joined: Mon Jun 09, 2008 6:35 pm
Posts: 24
thanks for your answers, but i would be glad about a complete code for my "ammo pack".

ObjectTemplate.create SupplyDepot hanomagSupplyDepot
ObjectTemplate.radius 1.4
ObjectTemplate.team 0
ObjectTemplate.setHealth -1 4.0 0
ObjectTemplate.addAmmoType 1 -1 15 0
ObjectTemplate.addAmmoType 2 -1 1.2 0
ObjectTemplate.addAmmoType 3 -1 1.2 0
ObjectTemplate.loadSoundScript ../../../Common/Sounds/SupplyDepot.ssc

This is the "invisible ammobox" of the german hanomag and i dont know how to use these values for my "mobile ammopack". My "ammo pack" should be a "handfirearm object" (not a static one like the normal ammobox) and the player should be able to give ammo to his teammates by holding down the left mousebutton. (Like the medic do)

thanks in advance
- 100fps


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Jun 10, 2008 11:18 am 
Offline

Joined: Thu Jun 15, 2006 9:36 am
Posts: 2015

_________________
In the beginning everybody was a SSM NooB.
BFV SSM on server 66.55.142.243
Server Homepage


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 275 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group